4 ms·
> Perhaps this requires `-O0 -g` or similar to work effectively, which games devs are usually not open to. There are also plenty of game devs expressing the id
by Karliss 3y ago
> Perhaps this requires `-O0 -g` or similar to work effectively, which games devs are usually not open to.
There are also plenty of game devs expressing the idea of "never use STL, because that makes performance unusable in debug builds". Which implies that many of them are not completely against debug builds (for debug/development purpose).
The problem of variables being optimized away is mostly for local variables. This tool will most likely used on global/long lifetime objects representing overall game state and configuration, instead of temporary variables while stepping through a function. (used)Global variables and class properties are unlikely to be optimized away or mangled in away that makes them hard to inspect.
This was created to help students while learning. In those kinds of projects performance is somewhat to be less of an issue, unless you make a mistake which would ruin performance regardless of optimization level.