Demigiant / dotween

A Unity C# animation engine. HOTween v2
http://dotween.demigiant.com
Other
2.34k stars 351 forks source link

Problem with low time precision, very choppy tweens after long application lifetime ( DoTween 1.2.705 ) #615

Open zworp opened 1 year ago

zworp commented 1 year ago

I'm working with a console where it's common to have the games suspended for weeks, even if you only play occasionally. I'm seeing an issue where my DoTweens get very choppy after maybe a week, the actual game still runs fine so it does not seem to be a frame rate issue.

I use DOTween.defaultTimeScaleIndependent=true and I noticed this in the DoTween code: Screen Shot 2023-01-08 at 12 25 56 AM

Time.realtimeSinceStartup will be very inaccurate after a week, I think DoTween should instead use Time.realtimeSinceStartupAsDouble.