You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently we only delete the buffers and they indeed stay bound the the attribute forever (or until next buffer is bound).
By cleaned up by nulling i think you mix two concept. You can clean texture/buffer binding gl.bindBuffer(gl.ARRAY_BUFFER, null). Then you delete the buffer gl.deleteBuffer(someBuffer).
As for attributes i've never heard about creating empty buffer and binding it to clear previous bindings. It does make sense but would love to know what are the implications of not doing that. Same with "set a buffer to 1 byte before deleting". Currently we only disable unused attributes.
In the book I'm reading, along with at this SO answer buffers are cleaned up by nulling them before deletion.
The book is quite unhelpful in just saying that this is 'best practice' without explaining why, but the SO answer also included it.
I cant find anywhere that this is done in pex-context
Is this because when loading lots of things it could cause some issues of emptying a say
ARRAY_BUFFER
that is being used elsewhere.Would this cause memory leaks in pex nodes when switching between graphs?
The text was updated successfully, but these errors were encountered: