Reduce CPU utilization of progress circle

The value of the math progress circle winds up calculating progress to
an incredibly fine degree, which causes hundreds of updates and
recalculations. Changing the progress circle to round to the closest
percentage greatly reduces the number of updates, dropping the browser's
CPU usage by 10-20%.
This commit is contained in:
Rufo Sanchez 2021-01-23 16:38:53 -06:00 committed by Stefan Dej
parent 3e0607fc9b
commit 9545fc76bb

View File

@ -71,7 +71,7 @@
:rotate="-90" :rotate="-90"
:size="50" :size="50"
:width="7" :width="7"
:value="printPercent * 100" :value="Math.round(printPercent * 100)"
color="red" color="red"
> >
</v-progress-circular> </v-progress-circular>