Hi all,
I didn’t know where to post this, but since im using LWJGL…i might as well post it here.
I can see a serious memory leak regarding VBOs and the GC. When a Geometry class gets isolated and hence GC’ed, and that geometry class is tied with VBO’s (i.e. has a VBO id), the required calls to free up the VBO and delete the buffer from VRAM/wherever else wont be called and the VBO id will be lost for ever…Hence, on a lot of scene switching, on alot of the scenegraphs out there, with VBO’s enabled…the memory goes up, the fps goes down because the driver may not change new VBO’s for old ones and move the new ones in system ram hence on every render call, the gfx has to fetch the data through the system bus in the system ram. And the same problem applies to Texture id’s too…
So my question is, does anyone know of a reliable way to delete the VBO’s when the Geometry class gets GC’ed? Are finalisers good enough to do this? From my understanding…they arent

