-
Notifications
You must be signed in to change notification settings - Fork 245
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
Slower refresh than 1hz? #452
Comments
You can't. Why would you want to? |
For progress bars with many items that run over many hours I find it esthetically more pleasing to not update so frequently. I used to just use the draw_delta to achieve the desired update rate relative to the number of items being processed. |
Another reason for this would be that it provides smoother estimates around ETC when iterating over elems where processing times fluctuate a bit. Currently I do once per sec updates and ETA jumps from 11hours to 4 hours all the time. With a 5 or 10 sec update rate this would be smoothed out to provide a more accurate estimate. |
Are the estimates worse than before if you change the refresh rate in the old version? |
Wasn't entirely sure whether to open a new issue, decided to comment here on an existing issue. After upgrading to
indicatif-0.17-smaller.movHere's a screen recording of indicatif-0.16-smaller.movCompared to
Even if the accuracy could be better here (that's one long 30 seconds, heh), (Pre-empting the possible suggestion of using EDIT: The indicatif-0.17-1hz-smaller.mov |
Given the amazing videos @Walther posted I tried to capture my problem as well in this video: 2022-08-18.09-00-51.mp4which was created with:
|
If you had a setup on 0.16 that you did find pleasing to look at, do you have a video of that, too? |
What do you think about this patch? It shouldn't be backwards incompatible due to trait bounds. I am a beginner at rust but changing this to f64 (or really, I think this is quite necessary due to the jumpy nature of the values otherwise. Within the span of one second, my progress bar estimates that the ETA is 20 minutes all the way to 1 hour and is impossible to read. |
Again, if you want to run a lower refresh rate because the estimates jump around too much, you should investigate the estimation code and fix it there. See discussion in #394. |
Hi! I just came across this issue and it seems that it is idle because no good reason was given why a lower refresh rate would be required. A while ago at my previous job I built a tool that would run for a very log time with the full dataset as input (at least 24h). With a refresh rate of 1Hz a full day would then output almost 100k lines of logs, which was very inconvenient to work with (truncated logs or slow searches). At the time it even motivated to build my own lighter progress library (which allowed me to update ~ every 1min) 😕 https://github.com/remi-dupre/prog-rs |
Well, if someone is sufficiently motivated I might take a PR for this. |
Previously I could refresh progress once every 5 seconds for example. Now the lowest refresh rate seems to be once per second with
https://docs.rs/indicatif/latest/indicatif/struct.ProgressDrawTarget.html#method.stdout_with_hz
andstdout_with_hz(1)
.Is there a way to achieve this currently?
The text was updated successfully, but these errors were encountered: