MSVC supports a optimization that considers the entire program. To activate this, the two following flags have to be set for the target:
- Compiler:
/GL
- Linker:
/LTCG
According to ChatGPT, the compiler will emit another intermediate format that the linker completes.
This might reduce overhead on some of the proxy/utility functions, but I have no idea what other effects they might have, considering that the actual game logic should not be optimized beyond what they had in there code.
This issue is meant as a reminder, until the later stages, when we either start using it or have ruled it out.