-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reduce allocations/generated garbage in renderers
- CharacterRenderer: don't reallocate RT color data array unless recreating the target. - MapRenderer: use for loops instead of foreach loops to reduce garbage generated from enumerators. - MainCharacterEntityRenderer: direct comparison instead of call to params method with only one parameter.
- Loading branch information
1 parent
cd8be8c
commit 8ba3f1a
Showing
3 changed files
with
30 additions
and
17 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