-
Notifications
You must be signed in to change notification settings - Fork 241
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add leaky bucket to rate limiting of progress renders.
The leaky bucket makes sure that progress bars are drawn on average a the desired rate but allows it to burst faster if progress is not uniform. It works by having a "bucket" of redraws that are added to every time a draw is requested, when the bucket is full the redraws are skipped, for every tick a redraw is removed from the bucket. This is to fix the regression of #166 when join was removed.
- Loading branch information
1 parent
8cacfd2
commit d1a2404
Showing
1 changed file
with
29 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters