|
|
|
|
|
by TazeTSchnitzel
3396 days ago
|
|
JavaScript, probably. More serious answer: it's using HTML5 canvas, which is quite inefficient as rendering APIs go. For example, if you use n colours when rendering a frame, and your game runs at m frames per second, you are invoking the browser's CSS parser n×m times a second, because CSS colour strings are the only way to express colours, and it is an exclusively immediate-mode API. The engine in use might be layering on top additional inefficiencies. (I love how easy to use HTML5 canvas is, but its CPU usage, performance and power consumption properties make me want to cry.) |
|
It's irrelevant here-- the game is using Phaser, which can render as either Canvas or WebGL (WebGL in my case), but it's spending most of it's time in engine code updating expensive transforms every frame.