Replace three `Timer` with postprocessing `Timer`
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
- Issue type
- Refactor
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript, three.js
- Domain
- computer-graphics, tooling
Research direction
Start with the referenced pmndrs/postprocessing src/utils/Timer.ts and compare it with the three Timer implementations and their call sites. Confirm the API differences and replace the existing timers with the postprocessing design, updating uses as needed so a shared timer is possible without breaking behavior.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- JavaScript
- Stars
- 863
- Forks
- 146
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from pmndrs/three-stdlib
-
SSAOPass height type error,It's number not booleanPossibly taken @Techsynx claimed this 23 days ago. Open
Difficulty 1/5 Under an hour Newbie friendliness 62/100
pmndrs/three-stdlib#423 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 58/100
pmndrs/three-stdlib#437 ·
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 42/100
pmndrs/three-stdlib#435 ·
-
OrbitControls touch crashes on Expo mobile appPossibly taken @adamistheanswer claimed this 164 days ago. Openbug
Difficulty 3/5 1-2 days Newbie friendliness 68/100
pmndrs/three-stdlib#426 · 1 comment · 1 reaction ·
-
Update MeshOpt v1Openenhancement
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
pmndrs/three-stdlib#425 ·
All issues in pmndrs/three-stdlib
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
Forrest-Technologies/drover#1040 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
good first issue help wanted
Difficulty 1/5 Under an hour Newbie friendliness 90/100
erkamyaman/rust-anything#702 ·
Maintainers usually reply within 1 day
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
-
good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
erkamyaman/unslop-anything#231 ·
Maintainers usually reply within 1 day