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

Added ability to throttle display frequency #10

Merged
merged 1 commit into from
Jun 21, 2022
Merged

Conversation

nickbeen
Copy link
Owner

What does this pull request do?

Adds ability to throttle display frequency. This provides a smoother animation when the progress bar is running.

Why is this pull request needed?

The animation of the progress bar sometimes progresses too fast and affects the animation of the progress bar in a disturbing way.

How does this pull request work?

It saves a microtime() float between concurrent displays and only allows a display to be refreshed if there is at least 0.25 seconds (current default) between concurrent displays.

@nickbeen nickbeen self-assigned this Jun 21, 2022
@nickbeen nickbeen merged commit 20c6414 into main Jun 21, 2022
@nickbeen nickbeen deleted the display-frequency branch June 21, 2022 08:30
@nickbeen nickbeen added the added For new features label Jun 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
added For new features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant