Can old gfx cards display 1024*1024 textures ?

BlitzMax Forums/BlitzMax Programming/Can old gfx cards display 1024*1024 textures ?

kragoth74(Posted 2006) [#1]
I would like to use a single image for the backdrop in my game. Since the resolution I use is 1024*768, loading an image would require a 1024*1024 texture.

Is is safe to assume that most recent graphic cards can handle this ? Of course I could split the image in chunks, but I'd prefer to keep things simple.


Dreamora(Posted 2006) [#2]
More or less safe.
But never forget, 1024x1024 is 4MB VRAM and it is not safe to assume that old cards have 64MB and more ... its more like 16 / 32MB of which you waste 4MB already ...


kragoth74(Posted 2006) [#3]
Thanks. I plan to stay under the 16MB limit anyway.


Fetze(Posted 2006) [#4]
Is the only limit VRAM? How do I know the "real" VRam-Size of a texture?


Dreamora(Posted 2006) [#5]
Width * Height * ByteDepth

For example for a 512x512 in 32Bit Graphicmode: 512 * 512 * 4 = 1MB

In what format you safe this does not make a difference, in VRAM it will always be this size! (even a 100kb JPG will need 1MB, yes)


kragoth74(Posted 2006) [#6]
VRAM size should be width* height * 4 for 32-bit graphics, so 1024 * 1024 * 4 = 4194304 bytes = 4 MB.