Skip to content
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

Timer with very short delay #5863

Closed
rexrainbow opened this issue Oct 11, 2021 · 1 comment
Closed

Timer with very short delay #5863

rexrainbow opened this issue Oct 11, 2021 · 1 comment

Comments

@rexrainbow
Copy link
Contributor

rexrainbow commented Oct 11, 2021

Version

  • Phaser Version: 3.60-beta.1 , or prevoius
  • Operating system: win10
  • Browser: Chrome, firefox

Description

In the test,

  • delay is set to 1 (1 ms)
  • repeat is set to 499, therefore timer will run 500 times
  • This timer will be stopped after 500 ms

The callback will count the times of time-out, and shown at a text game object.
I will expected that the counter will be 500 after 600ms.
It is because that callback only invoked one time in each tick. In a very short delay case, callback will be invoked many times, imo.

@photonstorm
Copy link
Collaborator

Thanks for opening this issue, and for submitting a PR to fix it. We have merged your PR into the master branch and attributed the work to you in the Change Log. If you need to tweak the code for whatever reason please submit a new PR.

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

No branches or pull requests

2 participants