Is there any way to get the "real" value (e.g. read something from directX into a string)?

Currently it would be hard to do something like this:

Code:
if (d3d_texfree < 10000) {
 // do something
}



I could do it like this:

Code:
if (d3d_texfree < 10000 && d3d_texfree >= 0) {
 // do something
}



But it's not a nice code.

But it would be more interesting to get the value how much video memory is in use instead of the value how much video memory is left, because this value would be independent from the gfx-card.

Is there any way to get good values? Maybe from DirectX?


Last edited by pegamode; 09/20/10 07:19.