Closed wumaolinmaoan closed 3 months ago
The changes improve the precision and efficiency of particle system updates by adding a new lastTime
property for accurate deltaTime
calculation in the ParticleBehaviourPlayable
class. A caching mechanism for ParticleSystem
in RuntimeClip
class construction enhances performance. Additionally, a URL update in the single.ts
file points to a new resource.
File Path | Change Summary |
---|---|
.../particle/particle-vfx-item.ts |
Added lastTime property in ParticleBehaviourPlayable class for precision in deltaTime calculation. |
.../timeline/track.ts |
Introduced caching for ParticleSystem in the RuntimeClip class constructor to avoid frame-by-frame queries. |
.../demo/src/single.ts |
Updated the json constant URL to point to a new resource. |
In a world of code, so deftly spun,
Particle streams and timelines run.
With caches neat and URLs bright,
Efficiency now takes flight.
A tweak here, a change anew,
Brings magic to the pixels' view.
Hop along, oh coder true, the future's here, for me and you! 🐰✨
[!WARNING]
Review ran into problems
Problems (1)
* Git: Failed to clone repository. Please contact CodeRabbit support.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
lastTime
property to the particle system to enhance precision in effects.Performance Improvements
ParticleSystem
to optimize performance in animations.Updates