Turns zef_waitbar into a 3--4-argument function, where the first 2 arguments are the current iteration and the maximum iteration, that the loop utilizing the waitbar is progressing towards. This is reflected in all files that call zef_waitbar, where each / in the first argument ratio has been changed to an additional comma. The progress ratio itself is computed in zef_waitbar.
The update interval of the waitbar is now based on the maximum iteration number: update_interval = ceil ( max_iters / 100 ). The more iterations there are, the less frequently the bar is updated, which should reduce the computation time of the loop that calls the waitbar function, while at the same time updating the bar more frequently if there are only a few iterations.
zef_waitbar
into a 3--4-argument function, where the first 2 arguments are the current iteration and the maximum iteration, that the loop utilizing the waitbar is progressing towards. This is reflected in all files that callzef_waitbar
, where each / in the first argument ratio has been changed to an additional comma. The progress ratio itself is computed inzef_waitbar
.update_interval = ceil ( max_iters / 100 )
. The more iterations there are, the less frequently the bar is updated, which should reduce the computation time of the loop that calls the waitbar function, while at the same time updating the bar more frequently if there are only a few iterations.