How do you determine the maximum texture size at runtime?

Hello,

I’m looking to determine the maximum texture size at runtime; is there a method that returns this info?

Many thanks,

El Diablo

bump

so not a single brave soul out there?

Just one brave soul need apply!

bump

Okay, I guess this isn’t such a simple question after all, so I’ll take a stab at it and those in the know can answer with a simple yes or no. Should I start with some number, let’s say 4096, and if the PackTextures method returns a null, keep trying with half the value (2048, 1024, etc…) until rect returns data? I was hoping for simple method that would query the hardware and determine the max texture size.

bump

its a good question, id like to know this too. Id also like to know if theres a way i can make the resolution of a texture beyond 4096x4096

bump

systeminfo.graphics can return the details of the card, however maximum texture size isn’t returned by the card.

Perhaps you could keep your own internal database and make an assumption that if the card is a GMA 9xx or Intel X3100 use a 1k texture and 2k for everything else?

Hey, thanks for responding… I would have thought that this is very common but nobody here responded except for you. So basically the only way to do this is to either 1) default to low texture size or 2) keep a database of most common cards.

Thanks for the input!