Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Hexapuss_Steve's avatar
Hexapuss_Steve
Heroic Explorer
6 years ago

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 
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_bear's avatar
    mouse_bear
    Retired Support
    50Hz (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)).


  • 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)

  • 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_bear's avatar
    mouse_bear
    Retired Support



    @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.
  • 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!


  • 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!

    Player Settings > Time > Fixed Timestep
    Also accessible through the Time class
  • To 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.