Bispoke Deferred Destruction & Leak Detection + MappedBuffer Copy fix#982
Bispoke Deferred Destruction & Leak Detection + MappedBuffer Copy fix#982RuffledPlume wants to merge 7 commits into117HD:masterfrom
Conversation
|
We could drop the last commit if need be, I'm 50'50 on it. |
* Handles deferred destruction of objects * Handles leaked objects printing debug info when encountering it * Flush during shutdown to catch any further leaks * Pool Zone VBOs instead of always recreating them * Better Pool Handling & removed Zone GLBuffer Pooling
ebbd814 to
3bce3f1
Compare
|
Ended up dropping the GLBuffer pooling, but kept the Destructible Handler as it's handles both deferred destruction & leak handelling |
BufferUtils destructs the allocated memory when the garbage collector finalises the object, however if the ReservedView has its reference held the object will remain alive. Therefore MemoryUtil should be used to directly control its life cycle so it is free'd once the memory has been uploaded to the GPU
|
143dafa fixes a leak where To avoid this entirely, I've switched from |
aHooder
left a comment
There was a problem hiding this comment.
Other than the malloc change, I'm happy with this 🙂
No description provided.