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:
parent
3e0607fc9b
commit
9545fc76bb
@ -71,7 +71,7 @@
|
||||
:rotate="-90"
|
||||
:size="50"
|
||||
:width="7"
|
||||
:value="printPercent * 100"
|
||||
:value="Math.round(printPercent * 100)"
|
||||
color="red"
|
||||
>
|
||||
</v-progress-circular>
|
||||
|
Loading…
x
Reference in New Issue
Block a user