Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable the option to automatically inline functions by compiler to improve modding with tools #3851

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SmileyAG
Copy link

Closes #3845

Yes, on the one hand, when using maximum optimization, automatic inline functions might be slightly affect performance, but at the same time it gives a huge problem to modders who used to make changes to each individual function using third-party tools (HLAE, bxt-rs, Orpheu, amxmodx and etc). So automatic inlines should be always disabled (unless if they are not forced in the code itself by the developer in the form of inline void e.g.).

@shawns-valve - these changes should also be applied to the engine as well, not just to game libraries!

-fno-inline: https://gcc.gnu.org/onlinedocs/gcc-5.4.0/gcc/Optimize-Options.html
OnlyExplicitInline (/Ob1): https://learn.microsoft.com/en-us/cpp/build/reference/ob-inline-function-expansion?view=msvc-170

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[HL25] Some functions are now inlined
1 participant