- Home /
Time.deltaTime does not change despite frame rate drops.?
I'm using unity 2017.3.1f1 64bit. I realy need to get the Time.deltaTime variable to be affected by the frame rate but for some reason its not working it always stays at 0.01666667 regardless of the frame rate of the game. In my game I use animation as well as the unity navmesh system wich all seems to use the Time.deltatime to be frame independed. But for some reason in my game frame rate drops cause everything to slow down. I thought the problem could be the TimeManager's Maximum allowed Timestep but mine is at 0.33333 and I checked it remains at 0.33333 my code doesn't change it. So everything seems fine concerning that. The problem is linked to something in my project because if I make an empty project Time.deltaTime starts working just fine. Any hints in to what could be causing this would be very usefull thanks in advance.
Answer by CavernHead · Apr 22, 2019 at 11:37 AM
I manged to answer my own problem while trying to make my game deterministic i had used Time.captureFramerate = 60. wich locks Time.deltaTime at 0.16667.