Lower res sprite - same performance?

Discussion and feedback on Construct 2

Post » Wed Aug 31, 2016 11:20 am

Hi!

I've been wondering about the performance of low-resolution sprites. Let's say I have a large 1920x1080 sprite as my background. If I were to change that image's native size to about a quarter of that, then resize it in the layout back to 1920x1080, would performance increase accordingly? Or would it stay the same since the image is still being rendered at the same size?

Sorry to post such a simple sounding question, but I couldn't find any straightforward answers anywhere. Thanks for your help!
B
8
S
1
Posts: 7
Reputation: 864

Post » Wed Aug 31, 2016 2:44 pm

Yes, using lower resolution images will help your performance. I'd suggest you try to avoid backgrounds as big as that. Try using the TiledBackground or Tilemap objects for this purpose and if you still have a big artistic background that you can't tile, then split it up into smaller parts.
B
136
S
33
G
17
Posts: 1,560
Reputation: 20,775

Post » Wed Aug 31, 2016 3:47 pm

It probably will have the same performance.
B
94
S
33
G
117
Posts: 5,389
Reputation: 75,339

Post » Wed Aug 31, 2016 4:00 pm

Your resize approach has the main benefit of saving memory since it uses a smaller source image. In terms of performance it probably won't make any significant change at all. You can find out exactly how much (if any) by measuring it.
Scirra Founder
B
402
S
238
G
89
Posts: 24,622
Reputation: 196,011

Post » Wed Aug 31, 2016 9:28 pm

Thanks guys for all your help!

Yes, it seems lower resolution sprites still have roughly the same performance! Of course, I'd always avoid using sprites that large, but it is nice to know for the future.
B
8
S
1
Posts: 7
Reputation: 864


Return to Construct 2 General

Who is online

Users browsing this forum: TheRealDannyyy, Yahoo [Bot] and 5 guests