From 993ac87cfaafea849c03d4d2569b70572c20b384 Mon Sep 17 00:00:00 2001 From: Mia Herkt Date: Thu, 19 Mar 2026 07:12:21 +0100 Subject: [PATCH] WeatherCard: Avoid using too much processing power Adjust effect speeds and update rates. Roughly halves power consumption on older Intel hardware (Haswell). --- Modules/Cards/WeatherCard.qml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Modules/Cards/WeatherCard.qml b/Modules/Cards/WeatherCard.qml index cb0f02745..5a853bd8c 100644 --- a/Modules/Cards/WeatherCard.qml +++ b/Modules/Cards/WeatherCard.qml @@ -45,8 +45,8 @@ NBox { NumberAnimation on shaderTime { loops: Animation.Infinite from: 0 - to: 1000 - duration: 100000 + to: root.isSnowing ? 900 : 3000 + duration: 300000 } ShaderEffect { @@ -60,7 +60,8 @@ NBox { hideSource: root.isRaining // Only hide for rain (distortion), show for snow } - property real time: parent.shaderTime + // Limit update rate to avoid using too much processing power + property real time: parent.shaderTime - (parent.shaderTime % (1 / ( root.isRaining ? 3 : root.isSnowing ? 6 : 2))) property real itemWidth: weatherEffect.width property real itemHeight: weatherEffect.height property color bgColor: root.color