It is believed that default C++ memory allocation to be slow, using new/delete without adding any implementation would have some penalties on performance.
We would like to use our custom memory allocators to use them to allocate Urho3d objects, is that possible? I see in Urho3d (RefCounted.cpp), it is hard coded (delete this).
I am not sure if it is possible to overload the new/delete operators (as far as I know, it should be done within the class declaration).
Doesn’t Urho3d define an interface for Memory/Object allocation ?
how is it possible to use a custom memory allocater.
RefCounted instance at constructor does allocate “new RefCount()”, that looks very expensive, doesn’t that effect on Urho3d performance!
it would be great to have some advice, hint about this.
regards