Simulation should be the same as before for a display with 60hz and very close to the same at a higher refresh rate.
Changelog:
Added the concept of delta time, to allow for better simulation when the refresh rate is 120 (or more than 60). There should be not noticable change on a 60fps screen, however, there may be variance if Flutter drops frames. No changes needed from a widget level.
ParticleSystem.update and Pariticle.update now contain a deltaTime argument. No changes needed from a widget level.
Resolves https://github.com/funwithflutter/flutter_confetti/issues/68
Simulation should be the same as before for a display with 60hz and very close to the same at a higher refresh rate.
Changelog:
ParticleSystem.update
andPariticle.update
now contain adeltaTime
argument. No changes needed from a widget level.