Please sign in to comment.
feature #26339 [Console] Add ProgressBar::preventRedrawFasterThan() a…
…nd forceRedrawSlowerThan() methods (ostrolucky) This PR was merged into the 4.4 branch. Discussion ---------- [Console] Add ProgressBar::preventRedrawFasterThan() and forceRedrawSlowerThan() methods | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | TBA The way ProgressBar redraw frequency works currently requires to know speed of progress beforehand, which is impossible to know in some situations, e.g. when showing progress of download, or I/O speed. Setting frequency too low relative to progress speed throttles I/O speed and makes progress bar flicker too much, setting it too high makes progress bar unresponsive. Current behaviour IMHO undermines usefulness of ProgressBar. This is an attempt to replace this with more consistent experience, not requiring to know speed of progress.) Commits ------- 83edac3 [Console] Add ProgressBar::preventRedrawFasterThan() and forceRedrawSlowerThan() methods
- Loading branch information...
Showing with 106 additions and 9 deletions.