Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Forums

OverviewFelgo 2 Support (Qt 5) › png transparant memory

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #16122

    Bas

    hi

    i have a set of png’s 2732 x 2048

    and a small portion of it has pixels, let’s say 10%.

    the rest is transparent.

    is the image going to be used completely in gfx mem?

    or will it be cropped automatically?

     

    thanx,

    Bas

    #16127

    Günther
    Felgo Team

    Hi Bas!

    For rendering images, it does not matter whether the image uses transparent pixels or not as the engine does not know how your image is set up (and processing every image before rendering to check for transparency would also affect performance). Each pixel of the image will take up space in memory, which is why it is the developers job to prepare images correctly for the best possible performance.

    This is also the reason why using TexturePacker to create Spritesheets improves the performance when using Sprite Animations as memory usage is then optimized.

    Here’s a pretty nice article about precious graphics memory (although it’s a bit older and a little tailored to Construct2, but the main principles still apply): Remember not to waste your memory

    Best,
    Günther

Viewing 2 posts - 1 through 2 (of 2 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded