Borrow one int array for all alpha model sorted faces - #1171
Open
RuffledPlume wants to merge 9 commits into
Open
Borrow one int array for all alpha model sorted faces#1171RuffledPlume wants to merge 9 commits into
RuffledPlume wants to merge 9 commits into
Conversation
Instead of borrowing an Int array for each AlphaModel which needs sorting, we calculate the total sorted faces then borrow a Int array for the whole zone. Each AlphaModel now has a offset into the Zone Array EboAlphaWriterJob finds continuous ranges before flushing the indicies to the eboBuffer
RuffledPlume
force-pushed
the
StaticAlphaModelTempFaceOptimization
branch
from
August 14, 2026 13:04
f168c99 to
e6d70ca
Compare
RuffledPlume
force-pushed
the
StaticAlphaModelTempFaceOptimization
branch
from
August 14, 2026 22:57
f0c5e90 to
345b23c
Compare
RuffledPlume
marked this pull request as draft
August 17, 2026 09:42
RuffledPlume
force-pushed
the
StaticAlphaModelTempFaceOptimization
branch
from
August 17, 2026 12:09
524da49 to
713ccc2
Compare
RuffledPlume
marked this pull request as ready for review
August 17, 2026 12:09
RuffledPlume
force-pushed
the
StaticAlphaModelTempFaceOptimization
branch
from
August 17, 2026 12:34
713ccc2 to
b6a7304
Compare
Added EboAlpha Upload Timer Tweaks Fix MultiLocs Calculate AlphaModel Distance once QuickSort Accessor Implementation Added Keyed List QuickSort Combine Accessors into a single class JIT was struggling to optimise the internal Quick Sort function resulting in VTable invocations which was hampering the sorting perf Tweaks
RuffledPlume
force-pushed
the
StaticAlphaModelTempFaceOptimization
branch
from
August 17, 2026 12:37
b6a7304 to
2a69243
Compare
If there is only two AlphaModels we can avoid the Key QuickSort by just comparing the distances
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.
Instead of borrowing an Int array for each AlphaModel which needs sorting, we calculate the total sorted faces then borrow a Int array for the whole zone.
Each AlphaModel now has a offset into the Zone Array
EboAlphaWriterJob finds continuous ranges before flushing the indicies to the eboBuffer
Before:

After (3x improvement):

Before:

After (1.6x improvement):
