Forum Discussion
Hexapuss_Steve
6 years agoHeroic Explorer
Time - Fixed Timestep / Hz values for Oculus devices in Unity
What is the math formula for converting Hz to Unity's Time - Fixed Timestep?
The problem I am solving for is to stop the jitters on my Physics Rigidbody pinball, the jitters go away when I sync the correct timestep value for the specific device Hz.
My plan is to query the headset type and then set Fixed Timestep to a value for that headset's Hz.
Go 60 Hz = 0.01666
Go 72 Hz
Quest 72 Hz
Quest 72 Hz
Rift 90 Hz = 0.0111
Rift S 80 Hz
Thanks,
Steve Hinan - METAL MULTIBALL
8 Replies
Replies have been turned off for this discussion
- mouse_bearRetired Support50Hz (Default) = 0.2
60Hz (Gear VR) = 0.0167
72Hz (Quest/Oculus Go) = 0.0138
80Hz (Rift S) = 0.0125
90Hz (Rift) = 0.0111
These values can be calculated by 1/x, with x = the max framerate of the device (1/90 (Rift)). - Hexapuss_SteveHeroic Explorer
NinjaGaijin said:
50Hz (Default) = 0.2
60Hz (Gear VR) = 0.0167
72Hz (Quest/Oculus Go) = 0.0138
80Hz (Rift S) = 0.125
90Hz (Rift) = 0.0111
These values can be calculated by 1/x, with x = the max framerate of the device (1/90 (Rift)).
Thank you NinjaGaijin
Rift_S = 0.0125 (for those who copy and paste) - Hexapuss_SteveHeroic Explorer
My plan is to query the headset type and then set Fixed Timestep to a value for that headset's Hz.
@NinjaGaijin Is this the technique others are using to remove physics jitters? Or is there a better way without changing the Fixed Timestep? Like a physics setting in Unity? - mouse_bearRetired Support
stevehinan said:
@NinjaGaijin Is this the technique others are using to remove physics jitters? Or is there a better way without changing the Fixed Timestep? Like a physics setting in Unity?
Yes, these are one of the methods suggested to improve/mitigate physics jitters. - ROBYER1Expert ProtegeHaving issues in Unity 2019.3.0a12 and jittering, it's all connected to the Timestamp values but I am using the same values shown here. There is a larger thread on the Unity forums about it here: https://forum.unity.com/threads/jittery-motion-on-oculus-quest.683704/
- jadamsartHonored Guestwhere do I go to change the timestamp values? Can anyone help? Do I need to go into player settings? Or do I need to make a C# code? I am not a great C# guy so any assistance in creating the code would be awesome!
- WeitinProtege
Player Settings > Time > Fixed Timestep
jadamsart said:
where do I go to change the timestamp values? Can anyone help? Do I need to go into player settings? Or do I need to make a C# code? I am not a great C# guy so any assistance in creating the code would be awesome!
Also accessible through the Time class - Gendron48Honored GuestTo develop for you Oculus you’ll not only need an Oculus account but you may want to setup an Oculus Organiztion (free). Additionally (for my purposes), you’ll need a Unity account. I’m using a personal account.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 9 months ago
- 10 months ago
- 3 years ago