littensy / slither

🐍 A casual game with a soothing Catppuccin color palette
https://www.roblox.com/games/14162747150
MIT License
119 stars 9 forks source link

perf(ui): use ripple for animation #24

Closed littensy closed 1 year ago

littensy commented 1 year ago

I noticed that a portion of the frames dropped while updating snakes were due to updating the bindings themselves. I suspect this is because Flipper is object-oriented, and creating several classes per tracer per snake may be more expensive than what Ripple does.

Performance

Ripple

image

Flipper

Note that spikes in frame time are consistently much larger.

image