Optimize a 1 pixel graphic!

JCFordJCFord Member Posts: 785
Small I know but I have a lot of 1 pixel graphics in my game and currently these are surprise surprise 1pixel graphics!

I am going through and optimising everything to improve frame rate, am I therefore right in thinking that to optimize to the power of 2 rule that my 1pixel graphic should really be placed in a 2 pixel high x 2 pixel wide graphic with the unused 3 pixels set as transparent?

Comments

  • scitunesscitunes Member, Sous Chef Posts: 4,047
    I don't think that is necessary. The Power of two rule means that it always rounds up. So a 63x63 image will use the same amount of memory as a 64x64, but a 65x65 image will use the same memory as a 128 x128 image. So if it rounds 1 pixel up to a 2x2 I can't see how that would effect the frame rate much as it is not that much bigger and it should be the same and not more than a 2x2 so it seems unnecessary.
Sign In or Register to comment.