4 ms·
It's pretty common for game engines to disable background GC and explicitly call the GC only at certain times (e.g., between processing the current frame and be
by bdowling 5y ago
It's pretty common for game engines to disable background GC and explicitly call the GC only at certain times (e.g., between processing the current frame and before starting the next frame). Sometimes that can be done using the default GC and sometimes it requires a custom incremental GC.
Same idea applies to a JIT. Getting the best performance may require tuning the JIT to only run at certain times (e.g., before starting a level).