Hi i have a couple questions in regards to the stuff i mentioned in the title.
First if i do something like
int vboID = GL15.glGenBuffers();
vboID = GL15.glGenBuffers();
would it create a memory leak?
I've heard a couple times that if you set big objects (such as large floatbuffers) to null after you are done using them it can speed up the java GC is this true?
in some of my lazy test code i don't delete my VBOs, VAOs, Textures, etc. at the end of the program. Ive always assumed that the OS would handle the memory deallocation like it would on regular non-openGL CPU based programs. Does the OS or the actual graphics card handle this? Or could this lead to potential problems. If it does handle it, then why bother deleting everything at the end of a program?
I know that's a lot of questions, if you happen to know any answers they would be appreciated
thanks in advance