Video RAM problem???

Started by
2 comments, last by Demon Lord 23 years, 11 months ago
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
----------------------------------------"Inash neteia haeg joa kavari quilm..." SD4
Advertisement
When you glGenTextures() you must also glDeleteTextures(), ofcourse.

GLuint nTex[10];

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

----------
Drago
osu!
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
osu!
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

This topic is closed to new replies.

Advertisement