From 6940d72f4333a16bcc46eb05734e757a8b4856d0 Mon Sep 17 00:00:00 2001 From: ItsLemmy Date: Thu, 6 Nov 2025 15:38:50 -0500 Subject: [PATCH] Wallpaper: slight memory optim. --- Modules/Background/Background.qml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Modules/Background/Background.qml b/Modules/Background/Background.qml index d6db2acb..8a0f43f3 100644 --- a/Modules/Background/Background.qml +++ b/Modules/Background/Background.qml @@ -307,8 +307,10 @@ Variants { transitionProgress = 0.0 // Now clear nextWallpaper after currentWallpaper has the new source + // Force complete cleanup to free texture memory (~18-25MB per monitor) Qt.callLater(() => { nextWallpaper.source = "" + nextWallpaper.sourceSize = undefined Qt.callLater(() => { currentWallpaper.asynchronous = true }) @@ -366,8 +368,10 @@ Variants { transitionAnimation.stop() transitionProgress = 0.0 - // Clear with proper delay to allow GC + // Clear nextWallpaper completely to free texture memory nextWallpaper.source = "" + nextWallpaper.sourceSize = undefined + currentWallpaper.source = "" Qt.callLater(() => {