Video RAM problem???
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
When you glGenTextures() you must also glDeleteTextures(), ofcourse.
GLuint nTex[10];
glGenTextures(10, nTex);
glDeleteTextures(10, nTex);
----------
Drago
GLuint nTex[10];
glGenTextures(10, nTex);
glDeleteTextures(10, nTex);
----------
Drago
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
----------
Drago
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
-Mezz
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement