4 ms·
> John Carmack implemented his own version of memory management for both Doom 3 [2] and Doom 3 BFG [3] presumably so he could get debugging information that isn
by GFK_of_xmaspast 11y ago
> John Carmack implemented his own version of memory management for both Doom 3 [2] and Doom 3 BFG [3] presumably so he could get debugging information that isn't available with the C++11 smart pointers.
Is this the same "Doom 3" that came out in 2004, a full seven-ish years before c++11.
- nadams 11y agoI don't know how old that source is - but what does it matter? Any ameuter C++ developer can easily replicate unique_ptr and shared_ptr [1]. If he wanted to use those I'm sure he could have easily implemented it. [1] https://isocpp.org/wiki/faq/freestore-mgmt#ref-count-simple https://isocpp.org/wiki/faq/freestore-mgmt#ref-count-simple