Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't recalculate all the 3D math if state hasn't changed demanding it.
In my stress-testing, this removes about 13% of our CPU time for mixing a source when this work can be avoided, and also removes the need for a spinlock around multi-values states, like AL_POSITION, etc.
- Loading branch information
Showing
1 changed file
with
73 additions
and
50 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