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

flickery when updated quickly #12

Closed
joeyh opened this issue Apr 4, 2015 · 0 comments
Closed

flickery when updated quickly #12

joeyh opened this issue Apr 4, 2015 · 0 comments

Comments

@joeyh
Copy link

joeyh commented Apr 4, 2015

loop = tick pg >> threadDelay 100 >> loop

This causes quite a lot of flicker in the display of the progress bar. It's being updated 1000 times a second.

It should help to avoid updating the progress bar if the rendered progress bar looks identical to how it did before. Then if only a bar and percent is being displayed, most redisplays will be avoided. This also helps in low-bandwidth situations.

If :current is in the format string though, that won't work, it will display differently every time.

The best fix would probably be to avoid updating the progress bar more than N times a second. This is what other progress bars I've seen do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants