
How many open files?
Hello. I have a problem when I open a lot of texture files and I want to know I can know how many files are open at the same time to debug.
Thanks

Wenas... 
.-If you are using a Texture class, add an static atribute that is incremented each time an instance is created and decremented each time an instance is destroyed. Put this code between
#ifdef _DEBUG
//code....
#endif
to have this reference count only exist in debug mode, is that is what you want...
Buena suerte!
What the hells!

.-If you are using a Texture class, add an static atribute that is incremented each time an instance is created and decremented each time an instance is destroyed. Put this code between
#ifdef _DEBUG
//code....
#endif
to have this reference count only exist in debug mode, is that is what you want...
Buena suerte!
What the hells!
What the hells!
.....And if you are no using classes( you should
)....
just do the same, make a global var that counts the number of textures, make the CreateTexture() function increment that variable and the DestroyTexture() function decrement it.
What the hells!

just do the same, make a global var that counts the number of textures, make the CreateTexture() function increment that variable and the DestroyTexture() function decrement it.
What the hells!
What the hells!
how many textures you can load should be determined by how big each texture is in your v-cards ram shouldn''t it? perhaps if you lowered the size or bit depth of the textures you could load more? there shouldn''t be a set number that you can load at once, at least not to my knowledge.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement