Game Development Community

Wasted Video Memory

by Paul Z · in Torque Game Builder · 03/17/2005 (8:22 am) · 3 replies

Folks,

For a game prototype, I drew a bunch of boxes (using MS Paint), saving them as .PNG files.
When using them in T2D, I get the following console message:

fxImageMapDatablock2D(T2D/client/images/ball) - Non POT bitmap loaded wasting approx -9588 bytes of video ram!

Any comments/explanations/fix suggestions?

Thanks, Paul Z.

#1
03/17/2005 (8:29 am)
POT stands for "power of two." 1, 2, 4, 8...256, 512, 1024, all those are powers of two. You'll want to restrict your image dimensions to those numbers (eg. 512x1024, 256x256).

From what I understand, if you load up a non-POT image into T2D, it simply bums up the size of the image (like increasing the canvas size in Photoshop), efectively using more video memory than the image would normally require.
#2
03/17/2005 (8:46 am)
It's just there to let you know how much memory was needed to turn the image into a compatible POT texture for display. Unfortunately, there was a silly bug that caused the amount to be displayed incorrectly as you can see. This is only a problem if you're targetting a minimum video memory and need to see how much excess is used making stuff POT.

If not, just ignore it. :)

- Melv.
#3
03/18/2005 (5:51 am)
LoTekK, Melv,
Thank you for the explanation. I should have thought of that... Anyway, the art was just for testing purposes, and I will rework it to be POT compatible in something more appropriate than MS Paint.
Thanks, Paul Z.