-
Notifications
You must be signed in to change notification settings - Fork 8
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
gml_pragma("forceinline" does not work on methods #6327
Comments
inlining is left to the C++ compiler each have its own heuristics for actually implementing the inline - this is not something we have any plans to improve on the current compiler |
Does this mean in theory forceinline could also work on methods? |
Yes it should... but it is up to the C++ compiler what it does.. |
YoYoGames/GameMaker-Bugs#6327 * Updated the description of gml_pragma() to make it clear that this is a request that's not guaranteed
YoYoGames/GameMaker-Bugs#6327 * A few more changes to the description
Modified the description of the |
YoYoGames/GameMaker-Bugs#6327 * Updated the description of gml_pragma() to make it clear that this is a request that's not guaranteed (cherry picked from commit 07c6dd7)
Description
I would like methods to also support inline, but it seems to only have an effect on global functions. Not sure if thats intended or a technical limitation, but if its possible I would love to get that performance boost while still organizing some of my functionality in methods instead of global functions.
Which version of GameMaker are you reporting this issue for?
IDE v2024.4.1.152 Runtime v2024.4.1.202
Which operating system(s) are you seeing the problem on?
Windows 10.0.19045.0
781a131d-9af6-4143-a524-75dd9b7a0b90
The text was updated successfully, but these errors were encountered: