fix(qs,fluxo) performance fix for repaints

This commit is contained in:
2026-08-12 20:18:56 +02:00
parent 86e90b0213
commit 9cf510e93b
7 changed files with 245 additions and 169 deletions
+9 -1
View File
@@ -1,4 +1,5 @@
import QtQuick
import QtQuick.Window
import "root:/config"
// Horizontally scrolling text that only moves when it actually overflows, and
@@ -18,6 +19,13 @@ Item {
readonly property bool overflowing: label.implicitWidth > width + 1
// An Item inside an unmapped PopupWindow still reports itself visible, so a
// marquee in a closed popout would keep its infinite animation alive. That
// animation writes QML properties on every frame — at 240 Hz, three closed
// popout marquees are enough to keep the whole animation driver spinning and
// burn a fifth of a core with nothing on screen. Follow the window instead.
readonly property bool onScreen: Window.window?.visible ?? true
clip: true
implicitHeight: label.implicitHeight
implicitWidth: label.implicitWidth
@@ -38,7 +46,7 @@ Item {
SequentialAnimation {
id: scroll
running: root.running && root.overflowing && root.visible
running: root.running && root.overflowing && root.visible && root.onScreen
loops: Animation.Infinite
PauseAnimation { duration: root.pause }