Skip to content

Fix remote positions missing of MirrorXY#148

Merged
ChuanXin-Unity merged 7 commits intoUnity-Technologies:masterfrom
johnsoncodehk:patch-1
Nov 6, 2019
Merged

Fix remote positions missing of MirrorXY#148
ChuanXin-Unity merged 7 commits intoUnity-Technologies:masterfrom
johnsoncodehk:patch-1

Conversation

@johnsoncodehk
Copy link
Copy Markdown
Contributor

@johnsoncodehk johnsoncodehk commented Nov 1, 2019

Fixed some cases where the tile refresh did not refresh the affected remote tile.

8de8e1b Update:
RefreshNearTiles() and RefreshRemoteTiles() are used to speed up RefreshTile(). Most people don't use the 5x5 rule size. The algorithm assumes the size of the past 3x3 rule. More than 3x3 will do extra calculations to ensure that users will not be affected by the upgrade.
Now change to Caching all RuleTile neighbor positions for the Tilemap, speedup 5x5 to same as 3x3.

@johnsoncodehk johnsoncodehk force-pushed the patch-1 branch 2 times, most recently from 56d6adc to 2cba06d Compare November 1, 2019 18:45
@ChuanXin-Unity
Copy link
Copy Markdown
Collaborator

Looks good! Thank for improving this and adding MirrorXY for Hexagonal!

@ChuanXin-Unity ChuanXin-Unity merged commit 9f18d66 into Unity-Technologies:master Nov 6, 2019
@johnsoncodehk johnsoncodehk deleted the patch-1 branch November 7, 2019 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants