PDA

View Full Version : Opengl Memory usage



farhat
03-25-2004, 11:24 AM
I have written a windows program in VC++6. I am displaying a number of ploygon meshes at a time with nearly 10,000 vertices (in all)]
I am also using the texture maps
My problem is when I run it for sometimes, the momory goes on increasing and after some the virtual memory is nearly all eaten up by the program
So can anybody help

Honk
03-25-2004, 12:27 PM
That usally means that you arent cleaning up your memory.

It's not OpenGL fault so you should check your code first the only exception may be that your application is crashing hard so i.e. texture resource could not be freed properly.

In 9 out of 10 cases its your code...