fix ard performance display

This commit is contained in:
Tamius Han 2023-10-21 17:59:52 +02:00
parent 6062094e6f
commit aab2f5b014

View File

@ -39,7 +39,7 @@
Math.max( Math.max(
(performanceData?.total?.averageTime ?? 0) (performanceData?.total?.averageTime ?? 0)
- (performanceData?.imageDraw?.averageTime ?? 0) - (performanceData?.imageDraw?.averageTime ?? 0)
- (performanceData?.imageDraw?.averageTime ?? 0), - (performanceData?.blackFrame?.averageTime ?? 0),
0 0
).toFixed(1) ).toFixed(1)
}} ms }} ms
@ -62,7 +62,7 @@
'width': Math.max( 'width': Math.max(
(performanceData?.total?.averageTime ?? 0) (performanceData?.total?.averageTime ?? 0)
- (performanceData?.imageDraw?.averageTime ?? 0) - (performanceData?.imageDraw?.averageTime ?? 0)
- (performanceData?.imageDraw?.averageTime ?? 0), - (performanceData?.blackFrame?.averageTime ?? 0),
0 0
) + '%' ) + '%'
}" }"
@ -80,7 +80,7 @@
Math.max( Math.max(
(performanceData?.total?.worstTime ?? 0) (performanceData?.total?.worstTime ?? 0)
- (performanceData?.imageDraw?.worstTime ?? 0) - (performanceData?.imageDraw?.worstTime ?? 0)
- (performanceData?.blackFrameDraw?.worstTime ?? 0), - (performanceData?.blackFrame?.worstTime ?? 0),
0 0
).toFixed(1) ).toFixed(1)
}} ms }} ms
@ -94,7 +94,7 @@
</div> </div>
<div <div
class="draw-blackframe" class="draw-blackframe"
:style="{'width': (performanceData?.blackFrameDraw?.worstTime ?? 0) + '%'}" :style="{'width': (performanceData?.blackFrame?.worstTime ?? 0) + '%'}"
> >
</div> </div>
<div <div
@ -103,7 +103,7 @@
'width': Math.max( 'width': Math.max(
(performanceData?.total?.worstTime ?? 0) (performanceData?.total?.worstTime ?? 0)
- (performanceData?.imageDraw?.worstTime ?? 0) - (performanceData?.imageDraw?.worstTime ?? 0)
- (performanceData?.blackFrameDraw?.worstTime ?? 0), - (performanceData?.blackFrame?.worstTime ?? 0),
0 0
) + '%' ) + '%'
}" }"