maximum texture size?

BlitzMax Forums/BlitzMax Programming/maximum texture size?

slenkar(Posted 2010) [#1]
If i put a bunch of images on the same texture, how big can the texture be?


Leon Drake(Posted 2010) [#2]
as big as your system can handle i'd imagine. I'm not sure if there is a built in cap.


Gabriel(Posted 2010) [#3]
For performance reasons, I'd recommend not going over 1024x1024 for a 2D game. Most hardware will happily go up to 2048x2048 and even 4096x4096 but binding textures of this size can be so slow on older/weaker hardware that it's actually slower than the state changes associated with using more smaller textures. Don't ask me why that should be though, as it's decidedly counter-intuitive from my perspective.

Of course, this isn't the answer I'd give if you were making a 3D game with terrains, but I'm assuming from the question and the forum choice that you're making a 2D game in vanilla Max2D.


slenkar(Posted 2010) [#4]
yeh thanks, ill keep them under 1024


Czar Flavius(Posted 2010) [#5]
Keep them as a power of two (64, 128, 256, 512, 1024 etc)