Repository navigation
perf: avoid repeated pixel-postcard delivery renders - #81
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.
解决什么问题 / Problem
像素邮局的自动寄送与回放在每次屏幕刷新时重画完整预览、更新文字,即使整数 bit 位置还没有变化。高刷新率会放大这部分重复工作。
玩家会看到什么变化 / User-visible change
验证 / Verification
f8f877d上完整npm run verify:1071 passed,0 failed;构建 215 个运行文件。边界与 AI 协助 / Limits and AI assistance
AI 协助定位重复渲染、实现修改和执行测试;不把流程完成当成学习者掌握。上述数字是受控调用次数,不是浏览器 FPS、实机卡顿或耗电改善的测量。无需数据迁移。公开上线后的资源和实际交互另行核验。
建议审阅路径:先看
pixel.mjs的动画回调,再看新增 UI 回归,最后看 HTML 缓存版本。