02-03-2021, 02:42 PM
(02-03-2021, 01:54 PM)josemendez Wrote: Turns out this is a bug in Unity: Time.deltaTime returns incorrect values (often negative) since Unity 2020.2. This isn't reproducible in editor. Why is this the case, I don't know. I suspect it's related to this: https://blogs.unity3d.com/es/2020/10/01/...d-it-take/thx for your help,if i use the 2020.2 and just use theĀ Burst to this project,it can fix this bug?
Since Oni relies on Time.deltaTime / Time.fixedDeltaTime to perform interpolation, the resulting interpolated particle positions are wrong. The Burst backend however, clamps this quotient to <0,1>, so any negative values turn to 0 and the result of interpolation is always the position from the last frame. In the next update I will clamp interpolation in Oni too, but this is far from ideal.
Will report this bug to Unity.
Edit: Posted in the Unity forums to get some more insight on this:
https://forum.unity.com/threads/fixedupd...2.1067567/