(This was asked in the WishList Topic, but I feel my reply would be more helpful, and more properly put, here.)
Originally Posted by frenchie16
Using smoothDeltaTime limits the effect of sudden fluctuations in deltaTime.Code:
Example:
Code:
-------- ------------------------- ... ... 0.25 0.25 0.25 0.25 0.25 0.25 0.95 (+380%) 0.4833 (+193%) 0.25 (-73%) 0.4833 0.25 0.4833 0.25 0.25 (-51%) 0.25 0.25 ... ...
In the table above, you see deltaTime is going along steadly at 0.25, but then suddenly it spikes up 380% to 0.95 then drop down 73% to 0.25. The visual effect of the spike would be everything suddenly moving 380% more units than the previous frame.
The smoothDeltaTime, since the values are averaged over several frames, only sees a jump of 193%. And when it does drop back down to normal, the drop is only 51%. Now, while there will still probably be a visually noticible "hitch", it won't be as drastic as the deltaTime hitch. The hitch will have been spread, or "smoothed", out over several frames.
I agree, it would be nice if some of the descriptions where expanded on, but hopefully my little description will help in the mean time (and is not too far off the actual mark)

Reply With Quote
