3 ms·
One elephant in the room that is never mentioned with these types of posts is that the 2D canvas API, like all immediate mode 2D vector graphics APIs, is a terr
by pcwalton 10y ago
One elephant in the room that is never mentioned with these types of posts is that the 2D canvas API, like all immediate mode 2D vector graphics APIs, is a terrible fit for games (and for most things besides games too, but I digress). It makes it very hard to get the kinds of batching optimizations you need to make good use of GPUs, especially mobile GPUs, and all the vector graphics stuff is overkill for sprite blitting. From a performance point of view, WebGL would be much more appropriate. (Of course, WebGL is also much harder to use, which is unfortunate.)
- doublerebel 10y agoPixi.js supports WebGL with Canvas fallback and I've found it to be very performant on mobile devices. It's the easiest way I've found to get WebGL-accelerated 2D.