smoothly-animating-points-with-regl icon indicating copy to clipboard operation
smoothly-animating-points-with-regl copied to clipboard

Super helpful example

Open matt-erhart opened this issue 7 years ago • 1 comments

Also, btw I can do at least 200k elements @ 60fps with this but in pixijs I can only do 20k sprites @ 60fps.

matt-erhart avatar Aug 14 '17 22:08 matt-erhart

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!)

rreusser avatar Aug 14 '17 23:08 rreusser