-
Notifications
You must be signed in to change notification settings - Fork 827
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve vertex sorting code and use radix sorts
For larger arrays of floats (>80 elements), the radix sort is significantly faster. We also merge the process of calculating each quad's centroid into the metric calculation, so that we can avoid expensive object de-references, and so that it isn't necessary to allocate additional memory prior to sorting.
- Loading branch information
1 parent
3af8680
commit d74e421
Showing
14 changed files
with
352 additions
and
323 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
14 changes: 0 additions & 14 deletions
14
common/src/main/java/net/caffeinemc/mods/sodium/client/util/sorting/AbstractSort.java
This file was deleted.
Oops, something went wrong.
27 changes: 0 additions & 27 deletions
27
common/src/main/java/net/caffeinemc/mods/sodium/client/util/sorting/InsertionSort.java
This file was deleted.
Oops, something went wrong.
89 changes: 0 additions & 89 deletions
89
common/src/main/java/net/caffeinemc/mods/sodium/client/util/sorting/MergeSort.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.