4 ms·
My point was more to compare libraries than to create the best canvas performance. But you are right: simple plain canvas is usually pretty fast.
by gnykka 6y ago
My point was more to compare libraries than to create the best canvas performance. But you are right: simple plain canvas is usually pretty fast.
- mellow2020 6y agoYeah, by default it's accelerated anyway, at least if depending on browser and hardware. So, at least for something as basic as drawing a lot of things with the same color, engines and additional code can only make it slower. Generally speaking, avoid GC, and avoid setting state that's already set... if you do these two things and use engines that do these two things, it's usually going to be more than fast enough :)
- dom96 6y agoWhat might be more interesting is drawing performance of images. And yes, a comparison with plain old canvas would be nice too.
- z3t4 6y agoIts nice if you can avoid creating new objects, but in recent optimization I've seen no difference between reusing objects vs immutable objects. Removing unnecessary code is always nice though.