-
-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: 2x image draw perf - remove allocations from image-renderer (#2962
) See excalibur bunnymark https://github.com/excaliburjs/excalibur-bunnymark This PR removes allocations and makes several perf improvements that DOUBLES our performance on the bunnymark * Removes all allocations from the draw image hot path * Removes allocations from object pool * Removes unecessary getters * Speed up AffineMatrix clone * Switches webgl to VAOs * Speed up texture id lookup * Caches native thunks to width/height ## New Perf Results ~50fps @ 20,000 sprites.  ~30fps @ 35000 sprites  ## Previous Perf Results on Excalibur main ~25fps @ 20000 sprites  ~15fps @ 35000 sprites 
- Loading branch information
Showing
9 changed files
with
216 additions
and
96 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
Oops, something went wrong.