-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(grid): pass cursor along with hexes in getPrevHexState() for a ~…
…20% performance increase When traversing a grid more than once the cursor was determined by doing a complete iteration of the previous traverser in order to get the last hex. The next traverser continues where the previous traverser left off. Now, the cursor is also returned when the previous traverser is called. This increases performance with ~20% when traversing a 10k hex grid twice.
- Loading branch information
1 parent
99192b2
commit a90f083
Showing
2 changed files
with
25 additions
and
19 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