Img resolution affects performance?

Get help using Construct 2

Post » Fri Aug 07, 2015 7:25 am

Hey guys,

If i have a platformer mainly with 20x20px tile size and characters around 30x30, what happens if i load for example 40x40px tiles and manually scale them to 20x20 so they have better definition? It affects game performance?
Image
B
13
S
1
Posts: 74
Reputation: 886

Post » Fri Aug 07, 2015 7:37 am

Fire Totem Arena wrote:Hey guys,

If i have a platformer mainly with 20x20px tile size and characters around 30x30, what happens if i load for example 40x40px tiles and manually scale them to 20x20 so they have better definition? It affects game performance?

The larger images you load the more image memory will be used. This is based on the original size so if you load 40x40px images and scale them to 20x20px it will still use as if it was 40x40px.

Scaling 40x40 image down to 20x20px wont improve quality, as you have less amount of pixels to show the same amount of information.
40x40 px = 1600 pixels
20x20 px = 400 pixels

So as you scale down big images you loose details and thereby quality, if you scale up images you have more pixels available to show information that there are in the original image, and therefore you will start to get more blurred images.
The best you can do if you want the best quality images is to make them the size you need and not scale them, but in most cases you can get away with scaling as long its not to much.
B
44
S
11
G
2
Posts: 1,182
Reputation: 6,848

Post » Fri Aug 07, 2015 8:46 am

Ok, got it. Thanks dude!
Image
B
13
S
1
Posts: 74
Reputation: 886

Post » Fri Aug 07, 2015 10:39 am

A 40x40 image is still tiny. Reducing a 2048x2048 image to 512x512 might bring some benefit (that's 16mb vs. 1mb respectively), but 40x40 is something like 6kb, so probably not something the GPU is going to struggle with!
Scirra Founder
B
397
S
236
G
88
Posts: 24,412
Reputation: 194,528

Post » Fri Aug 07, 2015 12:07 pm

So if i change a game from 640x360 with 20x20 tiles to for example 1280x720 with 40x40 tiles will have a similar performance?
Image
B
13
S
1
Posts: 74
Reputation: 886


Return to How do I....?

Who is online

Users browsing this forum: Artcadev, brunopalermo, lahbach and 27 guests