Skip to content

feat(core): Three.js r160 → r184 升级 & 帧率无关动画修正#78

Merged
jayli merged 1 commit into
mainfrom
001-upgrade-threejs-r184
May 27, 2026
Merged

feat(core): Three.js r160 → r184 升级 & 帧率无关动画修正#78
jayli merged 1 commit into
mainfrom
001-upgrade-threejs-r184

Conversation

@jayli

@jayli jayli commented May 27, 2026

Copy link
Copy Markdown
Owner

Summary

  • Three.js CDN 从 0.160.0 升级到 0.184.0(Import Maps 三处地址)
  • GlobalInstancedMeshManager 移除废弃的 updateRange.offset/count 兼容分支,直接使用 r184 的 addUpdateRange API
  • 修复 120Hz 高刷屏下玩家 bobbing 和水波纹动画频率翻倍问题,使用 dt * 60 归一化 + 指数衰减 lerp

Test plan

  • node command/run-tests.js 全部 361 用例通过
  • npm run lint 0 errors
  • 浏览器验证方块放置/删除/consolidation 正常
  • 120Hz 设备验证 bobbing 和水波纹频率正常

🤖 Generated with Claude Code

- CDN 版本号从 0.160.0 升级到 0.184.0(index.html Import Maps)
- GlobalInstancedMeshManager: 移除废弃的 updateRange.offset/count 兼容分支,
  直接使用 r184 的 addUpdateRange API(r184 renderer 每帧自动清理 updateRanges)
- 修复 120Hz 高刷屏下动画频率翻倍问题:
  · 玩家奔跑 bobbing 频率用 dt*60 归一化
  · 水波纹 uTime 增量用 dt*60 归一化
  · lerp 平滑因子改为帧率无关的指数衰减公式

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jayli jayli merged commit 59b876a into main May 27, 2026
1 check passed
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.

1 participant