Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Question on internal handling of images  (Read 2790 times)

0 Members and 1 Guest are viewing this topic.

quasius

  • Full Member
  • ***
  • Posts: 166
    • View Profile
Question on internal handling of images
« on: March 18, 2008, 04:17:39 pm »
Does SFML use any kind of texture compression or image re-arranging internally?
In other words, are there any performance gains by making sure images are already power of 2 sized and as full as possible with useful data and not transparent pixels?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Question on internal handling of images
« Reply #1 on: March 19, 2008, 02:12:36 am »
Quote
Does SFML use any kind of texture compression or image re-arranging internally?

No, absolutely nothing ;)

Quote
are there any performance gains by making sure images are already power of 2 sized

Graphics cards are (more or less) always internally optimized for power-of-two textures, so it's always a good idea to use them if you can.

Quote
and as full as possible with useful data and not transparent pixels?

Transparent pixels are just ordinary pixels with a different alpha value, they are not "empty" pixels ;)
Laurent Gomila - SFML developer

 

anything