Jump to content
  • Advertisement
Sign in to follow this  
Daivuk

OpenGL Mac OS X - Texture keep increasing the more I advance in the Level

This topic is 3085 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, This is an odd bug that we have on the Mac version of our game. Using the OpenGL Driver Monitor available on Mac, we see the number of textures and VRam used increasing the more we advance in the Level. If we go back, the number stop increasing. They only increase when we go to part of the level we didn't see before. Those area reuse the same meshes and there are no "new" textures. This is a very odd bug. I've been told that on iPhone, you need to render all your textures once at start of the your game, on an offscreen rectangle, to pre-cache them because iPhone has the same issue (Or "feature" ?) than on the Mac OS X. But doing so in our game doesn't fix the problem. And this is not a leak, because we are regaining all that memory at the end of the level. It's something done internally in the drivers, and on some Mac (Mac book pro) it creates big lags. And I would like also to specify this is not an engine bug. I did all the necessary debugging and no new textures are created. And it's a direct port from the DX version. Thanks for any help. I can't find any info about this on Google. My search skills are bad tho, if yours are better, please share! :)

Share this post


Link to post
Share on other sites
Advertisement
update:
After a few test, I found out that the "Textures" count stat in the driver monitor also includes "VBOs". Pre-rendering all of them on the first frame of the level fix the issue.

I've heard there is no other way to counter that problem, is that right?

Thanks

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!