Texture caching

Started by
2 comments, last by Zeu5 21 years, 11 months ago
I''m writing my own Texture Manager with LRU texture caching... I need to know if a texture is stored in 3d card memory or not. I tried to use the function glAreTextureResident(...) but not all implementation of opengl support this service (in my case it returns always true). There is another way? Thanks.
Advertisement
I don''t think there is another reliable way, are you absolutely sure that you''ve tested enough cases for textures to not be resident? It seems like a very simple thing for the drivers to implement so I''m surprised if it isn''t (at least on up to date drivers).
Why do you even need a texture manager with texture caching? GL will do it for you. If you don´t have gigs of textures, you certainly do not need such a cache - just minimize texture switches and state changes and GL will be happy.

skynet
Ok thanks.

This topic is closed to new replies.

Advertisement