2 ms·
C++ has better tools for manual memory management (value types, smart pointers, RAII).
by abrahamsen 16y ago
C++ has better tools for manual memory management (value types, smart pointers, RAII).
- jrockway 16y agoWorking around the garbage collector and using any C++ memory management techniques are both ugly hacks. (http://yosefk.com/c++fqa/exceptions.html#fqa-17.4 http://yosefk.com/c++fqa/exceptions.html#fqa-17.4) Fortunately, there has been plenty of research on GCs that are fast enough for games. So the solution is to use one of those for Android, now that people are actually interested in writing games.
- abrahamsen 16y agoYour link mention two C++ facilities for supporting manual memory management that have no equivalents in Java, and thus (ignoring the smug sarcasm) supports my original point. A better GC was already mentioned by the OP as another option.