Img resolution affects performance?

  • 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?

  • 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.

  • Ok, got it. Thanks dude!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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!

  • So if i change a game from 640x360 with 20x20 tiles to for example 1280x720 with 40x40 tiles will have a similar performance?

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)