aconstlink / motor

Software Framework for Audio/Visual/Interactive Real-Time Applications
MIT License
1 stars 0 forks source link

Explicit memory manager #4

Closed aconstlink closed 7 months ago

aconstlink commented 7 months ago

The old engine used the std::shared_ptr class for memeory management. Over time, it felt kind of unnecessary overhead due the kind of how all the data was handled.

Anyway. motor need an explicit model where the programmer is responsible for ownership management. The memory manager can help there by introducing a ref count where the data is stored. But besides of that, it should be possible to work with the managed pointer like a raw pointer.

aconstlink commented 7 months ago

This was more a reminder. The memory management is rewritten and used through out the engine. Newly ported libs will be adapted. :poop: