Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Earthling91's avatar
Earthling91
Honored Guest
3 years ago

Time.deltaTime returns 10^-5 in random frames in builds (Quest + Unity 2021.3 LTS)

Hi, as in the title, Time.deltaTime returns impossibly tiny values in some frames. This in turn breaks calculations in our code where it is present. I haven't found any project setting that changes this behavior. It happens even in an empty test scene with nothing but a logger.

Tested with both LibOVR and OpenXR as OVRPlugin.

 

The calculated (Time.time - lastFrameTime) in those frames is equal to 1/65536,  which is two full bytes (might have some meaning?).

 

Replies have been turned off for this discussion