Why my game is slowing down?

Good day! I’m trying to figure out why my game is slowing down: if I set fps manually or set auto, the game still slows down, especially on the phone. I need to understand:

  1. Can it be a matter of drawing the canvas, and is it worth replacing it with WebGL

  2. I reuse my elements in the game, their sprites are in SVG format. As I understand it, the game re-renders each element every time, can this be the case?

  3. How can you generally determine how much computer / phone resources are spent when playing and what values ​​are considered normal?

1 Like

I’m also experiencing poor performance in my game, which uses SVG sprites too. If somebody can explain this it would be nice.

And I know this because if I use normal textures the game runs pretty fast.

Phaser re-renders everything each frame.

SVG assets are rasterized when loaded, so they’re just like any other bitmap texture. But make sure they’re not too large.

Use your browser’s CPU Timeline/Profile tool.