Advertisement

Memory Leaks

Started by August 01, 2000 10:02 PM
9 comments, last by a2k 24 years, 4 months ago
okay, guys, i solved it. it had nothing to do with new and delete (though, i think i have that problem now...). but this is what it was: i'm using 3d Exploration open gl display lists, and in my render loop, i called the display list function generated by 3d exploration, but instead of calling the display list number (from the return value) it was actually generating more display lists during each call, and this was put in the rendering loop, so a display list was created on each loop pass! you can imagine it eating up lots of memory for storing a display list on every pass of the game loop. sheesh, if i had only understood display lists and the 3d exploration code better....

anyway, i hope it benefits anyone to know NOT to do this, but to use this display list function just once in initialization, store the return value in another variable, and use the variable instead. i'm so stupid. but i learned.

thanks for the help anyway, guys. it's of much value to me now, now that i have REAL memory leaks from news and deletes.... (great coder, yeah right.) thanks again. =)

a2k

Edited by - a2k on August 3, 2000 1:28:20 PM
------------------General Equation, this is Private Function reporting for duty, sir!a2k

This topic is closed to new replies.

Advertisement