POT

2nd July 2012

Not the kind you smoke, but rather Power Of Two. OpenGL has to have textures as Power Of Two. That means valid sizes are as follows:
2,4,8,16,32,64,128,256,512,1024…

Of couse you can have any size image, but once you turn it into a usable texture it’s expanded to the nearest POT. Worst case scenario you have a texture that’s 513×513, and you’ve just wasted 785,407 pixels (or 74.9%) worth of memory. If you can, try and make sure you get as close under one of those values as possible, or better yet create a sprite sheet.


Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Blog Categories

Injury of the Day

Nurse Long's Diagnosis:

Gymnastic Kidneys

Not nearly as positive as they sound and notoriously difficult to operate on, Gymnastic Kidneys can cause unnecessary wriggling and excessive flapping around. Cases sometimes cure themselves after the…

Read More

Sign-Up For News And Goodies!

Want to stay up to date with all things Stunt (and Kempt - the developers of these games)? Awesome! Sign up to our mailing list below.

* indicates required