Cap Liquid Glass Effect to 30FPS for reduced GPU throttling

This commit is contained in:
Hariharan Mudaliar 2026-01-23 12:37:17 +05:30
commit 850bdc592b
No known key found for this signature in database
GPG key ID: 025583EB0BE5640E
3 changed files with 4 additions and 4 deletions

View file

@ -136,7 +136,7 @@ struct LockScreenTimerWidget: View {
}
private var customLiquidBackground: some View {
TimelineView(.animation) { context in
TimelineView(.periodic(from: .now, by: 1.0 / 30.0)) { context in
LiquidGlassBackground(variant: timerGlassVariant, cornerRadius: Self.cornerRadius, trigger: context.date.timeIntervalSinceReferenceDate) {
Color.black.opacity(0.12)
}