forked from zeux/meshoptimizer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
clusterizer: Switch to a small cache for optimizeMeshlet
Instead of only matching against the last triangle, match all previous triangles by tracking the delta between a given cache position; the delta is computed using 8-bit unsigned math so that overflows don't matter as much (there's still a collision between triangles 0 and 256 in the cache but that shouldn't affect the quality noticeably). Experimentally, a cutoff of 3 or 4 produce the same results on NVidia so use 3 for more conservative matching.
- Loading branch information
Showing
1 changed file
with
21 additions
and
8 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