Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Time.deltaTime Not Constant: VSync CameraFollow and Jitter

$
0
0
I'm running with VSync at a constant 60fps which is a calculated dt of 16.667ms (blank project with just a cube).

When I call Time.deltaTime it varies wildly. Time.deltaTime can be as low as 2ms and as high as 31ms. The deltaTime "averages" out to be ~16.67ms.

Why does Time.deltaTime vary wildly? Shouldn't it be a constant 16.667ms assuming the Update() loop has minimal computations and lots of idle time?

My understanding is the Update loop runs as fast as possible (and will...

Time.deltaTime Not Constant: VSync CameraFollow and Jitter

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>