smoothly-animating-points-with-regl
smoothly-animating-points-with-regl copied to clipboard
Super helpful example
Also, btw I can do at least 200k elements @ 60fps with this but in pixijs I can only do 20k sprites @ 60fps.
Thanks! So glad to know it was helpful! 😄 🎉
Regarding framerates, it can depend heavily upon the precise details of how things are implemented. Like whether you draw points as squares or circles or antialiased circles or maybe sprites. Ideally if you strip away all the machinery around the libraries, they'd be dispatching roughly equivalent calls to the GPU and you'd get nearly identical performance, but sometimes that sort of control is hidden behind a library (not too familiar with pixijs, though IMO regl tends to keep those details fairly visible).
Also, there are some more basic settings like antialiasing and resolution that can make a big difference in the fill rate, that is simply how many fragments it's processing per frame. (Antialiasing is set in attributes
in regl. Definitely worth switching on/off! so see the cost/benefit!)