perf(efficiency): 落实首批采样减负与发行包瘦身

This commit is contained in:
2026-11-03 23:19:52 +08:00
parent 935701fca6
commit def3b1e130
40 changed files with 483 additions and 291 deletions
@@ -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)
}
}