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
Does LLGL have support for host memory allocations callbacks ? Such as VkAllocationCallbacks for vulkan? How about other apis (dx, ogl, etc) and other library allocations ?
If not, is this planned ?
The text was updated successfully, but these errors were encountered:
raxvan
changed the title
Internal memory allocation
Internal memory allocation callbacks
Aug 18, 2018
The Vulkan backend is still in an experimental state. Compared to the D3D12 and Metal backends more usable, though.
However, right now there is no such interface to control the Vulkan allocation model.
I currently also have no plans when and how I implement this.
As long as the Vulkan backend does not have significiantly better performance than the D3D11 and GL backends, I don't see the necessity for such fine grained memory control.
What about memory control of the internal structures that LLGL itself allocates? Is there a way for us to define allocation routines for the library as a whole?
There are currently no interfaces or plans for this fine-grained memory control. LLGL uses the default STL containers and allocators only (with very few exceptions).
I guess an alternative then is to overload the default new and delete. I've got allocation tracking for leak detection and a few cache coherence tricks I'm using to squeeze some perf out of my framework.
Does LLGL have support for host memory allocations callbacks ? Such as VkAllocationCallbacks for vulkan? How about other apis (dx, ogl, etc) and other library allocations ?
If not, is this planned ?
The text was updated successfully, but these errors were encountered: