4 ms·
Seems to me the original rendering pipeline wasn't GPU based. The author is just dumping whatever the game renders in a canvas element, there is no need for web
by throw_m239339 5y ago
Seems to me the original rendering pipeline wasn't GPU based. The author is just dumping whatever the game renders in a canvas element, there is no need for webgl for that.
Also Canvas is getting some GPU acceleration in some browsers:
https://developers.google.com/web/updates/2012/07/Taking-advantage-of-GPU-acceleration-in-the-2D-canvas https://developers.google.com/web/updates/2012/07/Taking-adv...
- westoncb 5y agoGP was asking whether it would be more performant to do via webgl though. (It's already known that canvas is currently used) My bet is that webgl probably would be, but I'd also be curious to hear from someone with more info. Seems to basically come down to whether canvas of webgl does a more efficient version of some kind of memory copy onto the GPU side.
- pjmlp 5y agoUsually canvas hardware acceleration is not taken advantage of unless you do CSS tricks like setting an element with another depth order. https://www.programmersought.com/article/58016098343/ https://www.programmersought.com/article/58016098343/ In any case, given how browsers black list drivers and GPU models, even WebGL isn't guaranteed to be accelerated. With these constrains the Web will never be as fast as native for graphics programming. They took us Flash away, but forgot to ensure the same capabilities were kept.
- deleted 5y ago[deleted]