Repository navigation
Keep per-vertex math out of iOS interpreter - #206
Merged
Merged
Conversation
This was referenced Oct 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Continue of #205
This is a really long issues that I am finding why and found it....
On iOS, .NET 11 never precompiles
float.MultiplyAddEstimateand iOS don't have JIT (android have JIT). So in CoreCLR's intepreter, Sakura is a graphic framework so every frame we useVector2.Transform,Vector2.LerpandMatrix3x2product a lot since it's a heart of every drawable. So this make an iOS performance on yuuki a lot worse (frame drop) a lot more than I expected.Note : this already got fixed and merged on the runtime repo so waiting for it to come in .NET 12 preview
Results on yuuki. (iPhone 16 Pro Max, same 150 s session)
About android, this fix got benefit on android too. Measured using this code, attached it in yuuki code for testing
Transform, 4096 independent verticesTransform, dependent chainLerp, chainMatrix3x2 *, chain