Repository navigation
perf: skip unchanged pathfinding grid writes - #82
Merged
Merged
Conversation
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
用户价值
减少寻路连续播放时对未变化格子的重复写入,保留三猫、原玩法、学习记录与原网址。只改显示更新,不改变搜索、计时或历史逻辑。
改动范围
验证
诚实边界
上述数量仅是330个主地图格子的4项属性写入次数,不是全页更新数、FPS、真机耗电或真实手机触摸性能。没有修改素材、记录存储或学习协议。
建议审阅路径
先看 pathfinding.mjs 的四处条件写入,再看 UI 回归测试和 HTML 缓存版本。确认候选类名/数字/说明在退出猜格时仍被清理。