• Advertisement

Archived

This topic is now archived and is closed to further replies.

Video RAM problem???

This topic is 6473 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

Does OpenGL frees video RAM when an app is done ? It seems that a terrible problem sucks up all the video RAM of a GeForce when I try my app. It happens since I tried textures, so I suppose it is the problem. I tried to free the VRAM myself, but I ain''t sure I do it the right way. Tips? Eric Laberge

Share this post


Link to post
Share on other sites
Advertisement
When you glGenTextures() you must also glDeleteTextures(), ofcourse.

GLuint nTex[10];

glGenTextures(10, nTex);
glDeleteTextures(10, nTex);

----------
Drago

Share this post


Link to post
Share on other sites
Note that when you keep on creating new textures with OpenGL, if your high performance memory (Video Ram) is depleted, OpenGL will create the textures in low performance memory (System Ram).

----------
Drago

Share this post


Link to post
Share on other sites
Yeah, JohnC commented on that a while back - if you have 14mb textures on a 12mb card, OpenGL pulls all the textures (14mb) through system RAM, not just the 2mb overflow. This kills performance.

-Mezz

Share this post


Link to post
Share on other sites

  • Advertisement