Memory allocation hooks

All information about Magic Particles: news, question, comments, etc.

Memory allocation hooks

Postby gunner10 » Tue Nov 03, 2015 7:20 pm

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.
gunner10
 
Posts: 1
Joined: Tue Nov 03, 2015 7:13 pm

Re: Memory allocation hooks

Postby Odin_KG » Wed Nov 04, 2015 2:55 am

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.
User avatar
Odin_KG
Administrator
Administrator
 
Posts: 249
Joined: Sat May 09, 2009 10:53 pm


Return to Magic Particles

Who is online

Users browsing this forum: No registered users and 1 guest

cron