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.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support