-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename TimerType and timer #329
Comments
Fixed and ready for review. |
Hmm... I didn't realize that timer.js was a step timer. That's now clear with the rename. But then I have a potential problem in NS PlayButtonGroup: stepTimer.runOnNextFrame( () => {
addAMateButton.visible = ( bunnyCount === 1 );
playButton.visible = ( bunnyCount > 1 );
} ); This code assumes that it will be run on the next next frame, not on the next step. And I think that's a valid assumption based on the name. But now I see this (new?) documentation in stepTimer.js:
So 2 questions: (1) Can we do something about this misleading |
Looks like I should be using animationFrameTimer.js ? Tracking in phetsims/natural-selection#227. EDIT: I was wondering if other sims might be making the same assumption as NS. But I see that NS is currently the only use of |
stepTimer.js doc says that it only runs "during the step". Does "run" mean "emits"? If that's the case, then I was expecting to see |
I may be seeing some CT errors from this issue in built scenery libraries:
|
Sounds like it's appropriate to replace "ready-for-review" with "blocks-publication". |
Probably a casing problem, I'll take a look soon. |
I renamed it to
I commented in the issue.
I updated the JSDoc in 09f16b8
I fixed the casing problem in the commits. |
Nice improvements, and thanks for the clarification. |
Is this issue blocking for the NS deliverable described in phetsims/natural-selection#208? Milestone for taking shas is this Thursday, 9/17. Ideally this should be wrapped up, because the work has been done and is awaiting review. But my opinion is not blocking, because it doesn't seem to causing any problems, and NS uses |
@samreid, the changes look good to me! I like the rename to |
Thanks, closing. |
From https://github.com/phetsims/phet-io/issues/1703#issuecomment-690675434
The text was updated successfully, but these errors were encountered: