Enable AOT compilation on iOS release builds for much better performance #24338
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This also enables Mono Interpreter as a fallback for areas where dynamic code is utilised. I will look into the steps necessary to remove it to close up any remaining possibilities for gains, but I'll do that as a separate follow-up effort later because building osu! with AOT compilation is quite a tedious task, and the performance gain in this PR alone is probably more than enough.
Note that while checking for lazer's performance, I had this PR checked out along with ppy/osu-framework#5888 to render the game at 0.5x scale (helps with crowded screens such as beatmap listing), and also https://github.com/smoogipoo/osu-framework/tree/masking-ssbo (+ osu/osu-resources changes).
In addition, I've removed mentioning of dotnet/runtime#69410 as we plan to enable source generation on Realm, which will fix this (at least that's what I saw last time I tried this, because the failure was inside Fody's "weaved" code). Also, there's been work towards resolving that issue thread at a .NET-level starting at .NET 8 preview 7.
This adds a magnificent boost in rendering performance on iOS. Anyone who's been struggling with performance before on their iPhones/iPads should give this release a try!