Find the Best Demos and Examples

Check out this quick tour to find the best demos and examples for you, and to see how the Felgo SDK can help you to develop your next app or game!


OverviewFelgo 2 Support (Qt 5) › png transparant memory

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



    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?





    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


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

RSS feed for this thread

You must be logged in to reply to this topic.