Replace three `Timer` with postprocessing `Timer`
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 45/100
- Issue 类型
- 重构
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- javascript, three.js
调研方向
从被引用的 pmndrs/postprocessing src/utils/Timer.ts 开始,将其与三个 Timer 实现及其调用位置进行比较。确认 API 差异,并用 postprocessing 的设计替换现有的 timers,按需更新使用方式,以便可以共享一个 Timer 而不破坏行为。
由索引模型根据 Issue 内容生成。
描述
We recently added the three Timer class by Mugen. After this @vanruesc made us aware that he has a modified version inside of pmndrs/postprocessing that can be found here. I'm thinking we should use the same Timer class as pmndrs/postprocessing so that a shared timer is possible between pmndrs libraries.
Notable differences are using getters instead of get functions, reset properly resets the whole timer, autoReset manages the timer with page visibility without constructor side effects and the rAF timestamp can be passed into update (though this optimization was added to the three Timer recently).
The only downside I see is when the three Timer gets merged its API will likely be different from ours. However, I think if we do extend what looks like a better Timer design it can influence the final API and allow us to experiment with new ideas.
- 主要语言
- JavaScript
- 星标
- 863
- 派生
- 146
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
pmndrs/three-stdlib 的其他 Issue
-
SSAOPass height type error,It's number not boolean可能已有人在做 @Techsynx 于 23 天前认领。 未关闭
难度 1/5 1 小时以内 新手友好度 62/100
pmndrs/three-stdlib#423 ·
-
难度 4/5 3-5 天 新手友好度 58/100
pmndrs/three-stdlib#437 ·
-
bug
难度 4/5 3-5 天 新手友好度 42/100
pmndrs/three-stdlib#435 ·
-
OrbitControls touch crashes on Expo mobile app可能已有人在做 @adamistheanswer 于 164 天前认领。 未关闭bug
难度 3/5 1-2 天 新手友好度 68/100
pmndrs/three-stdlib#426 · 1 条评论 · 1 个 reaction ·
-
enhancement
难度 2/5 1-3 小时 新手友好度 45/100
pmndrs/three-stdlib#425 ·
查看 pmndrs/three-stdlib 的全部 Issue
相似的 Issue
-
enhancement good first issue help wanted
难度 2/5 1-3 小时 新手友好度 85/100
-
Add a language未关闭good first issue
难度 2/5 1-3 小时 新手友好度 78/100
-
enhancement frontend priority:P3
难度 2/5 1-3 小时 新手友好度 72/100
geolens-io/geolens#4153 ·
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 66/100
xdelmo/Portfolio-minimal#667 ·
维护者通常 1 天内回复
-
enhancement javascript
难度 2/5 1-3 小时 新手友好度 88/100
tamadalab/welfare-time#165 ·
维护者通常 1 天内回复