Does sprite scale function affecting game performance?

Hi, does using phaser scale function for sprites “setScale(3,3)” affecting game performance or not?

I have assets of 64px pixel art and im using them for a game. But i saw some people drawing assets 16px then scaling them to x2 for 32px on screen or x3 to be 64px. I saw also that stardew valley is doing the same exact thing.

Is that a good approach to go with using phaser or I should just keep my currents assets and go without scaling?

Scaling in itself won’t cost you anything, other than the fact you’re now drawing more pixels on the screen - but this is the same cost as if you just used a smaller sprite and scaled it up, or a larger sprite, it still covers the same number of pixels on the screen.

2 Likes