cancel
Showing results for 
Search instead for 
Did you mean: 

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

Earthling91
Level 2

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?).

 

image.png

0 REPLIES 0