3 ms·
It's not a particularly controversial statement in the context of games. Many commercial games are still developed entirely or primarily in non garbage collecte
by mattnewport 3y ago
It's not a particularly controversial statement in the context of games. Many commercial games are still developed entirely or primarily in non garbage collected languages like C++.
Even Unity which uses garbage collected C# for game code is still a C++ engine under the hood for much of the performance critical engine code.
Having worked in games and VR development for many years I can say that memory management was not a major problem in C++ and for tricky areas of memory and resource management like GPU memory garbage collection doesn't generally help you.
When it comes time to optimize memory usage and performance it's often easier when memory management is explicit, deterministic and visible as well as highly customizable than when you have to work with a garbage collector which is a bit of a black box and has a lot of non deterministic and unpredictable behaviour.
Even after working for several years primarily in Unity with C# I still tend to prefer non garbage collected languages for games.