Page 1 of 1

Memory allocation hooks

PostPosted: Tue Nov 03, 2015 7:20 pm
by gunner10
I was wondering about the possibility of the introduction of memory allocation hooks so that we can provide our own versions of malloc/realloc/free that will be used instead by the library?

If this is currently possible I am not aware of it, so feel free to let me know how :)

Otherwise I think this would be very useful - our use of Magic Particles is very heavy throughout our application, and we are seeing many small/frequent allocations that look like could really benefit from some type of small block allocation scheme to keep memory fragmentation under control.

Re: Memory allocation hooks

PostPosted: Wed Nov 04, 2015 2:55 am
by Odin_KG
If this is currently possible I am not aware of it, so feel free to let me know how :)

Unfortunately, this possiblity is absent.
I wrote down your request, but I think this feature will not increase the speed. API does not use malloc/new often.
At present, I am ending the version 3.0. This version has many new features: meshes, trail/beam, etc: http://www.youtube.com/watch?v=4hUGSDuwJd8
After I am going to optimize the source code.