Discord
Login
Community
DARK THEME

Lag in the project due to sprite resolution

My question is that if you draw too many sprites that are "high resolution", this may cause lag? Also, another question is about whether drawing several low resolution sprites is better than drawing a single sprite in high resolution? And a last question would be if drawing too many sprites in large size (that occupy the whole screen, I don't mean the resolution) can cause lag?

Drawing a lot of sprites will ofc result in lag. With high resolution this will be faster than low resolution. And using spritesheets is better than separate images. They load faster, and become tilesets (a set of tiles, aka sprites inside one image) inside the map editor.

Avoid drawing images with very high resolution compared to the resolution you need.

If your sprite has a resolution of 1000x1000 and will always be displayed in sizes from 10x10 to 20x20, then reduce the resolution to 20x20.

From the tests I did,

  • MicroScript2 handles well both up to 200-600 small sprites (10x10 to 20x20)

  • PIXI 7 (you have it as an option in the settings) - 2000 - 6000 small sprites (10x10 to 20x20)

If you have a lot of sprites, e.g. from graphic effects, limit them to a certain number, e.g. 100.

MicroSctudio prefers a low resolution of 400x200, so there is no point in using graphics with higher resolutions.

Post a reply

Progress

Status

Preview
Cancel
Post
Validate your e-mail address to participate in the community