perf(efficiency): 落实首批采样减负与发行包瘦身
This commit is contained in:
@@ -6,7 +6,6 @@ struct GPUStatisticsView: View {
|
||||
let allocated: UInt64?
|
||||
let average: Double?
|
||||
let peak: Double?
|
||||
@Environment(\.accessibilityReduceMotion) private var reduceMotion
|
||||
|
||||
private var reference: Double { max(1, Double(max(inUse ?? 0, allocated ?? 0))) }
|
||||
|
||||
@@ -33,8 +32,6 @@ struct GPUStatisticsView: View {
|
||||
}.font(PanelStyle.label).lineLimit(1)
|
||||
MetricProgressBar(value: bytes.map { Double($0) / reference } ?? 0, color: color)
|
||||
.frame(height: 3)
|
||||
.animation(reduceMotion ? nil : .easeInOut(duration: 0.35), value: bytes)
|
||||
.animation(reduceMotion ? nil : .easeInOut(duration: 0.35), value: reference)
|
||||
.accessibilityHidden(true)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user