https://bugs.kde.org/show_bug.cgi?id=381000

--- Comment #124 from Vova Mshanetskiy <vovams...@gmail.com> ---
It looks like i was able to found a workaround for this issue. Here is what i
did.

First i enabled KWin effect which highlights areas of screen when they are
redrawn. As expected, the whole screen was constantly flashing. For me it
looked like some animation is constantly playing, so i decided to try to edit
/usr/share/plasma/wallpapers/org.kde.slideshow/contents/ui/main.qml to disable
all animations. This worked, and i was able to narrow modifications down to
changing fadeFillMode() function as follows:

function fadeFillMode() {
    fadeAnim.running = false
    swapImages()
    currentImage.sourceSize = otherImage.sourceSize
    sourceSizeTimer.stop()
    currentImage.source = modelImage
    currentImage.opacity = 1 // <--- replaced 0 with 1 in this line
    otherImage.z = 0
    currentImage.fillMode = fillMode
    currentImage.z = 1

// --- commented out the rest of function ---
/*
    // only cross-fade if the new image could be smaller than the old one
    fadeOtherAnimator.enabled = Qt.binding(function() {
        return currentImage.paintedWidth < otherImage.paintedWidth ||
currentImage.paintedHeight < otherImage.paintedHeight
    })

    fadeAnim.running = Qt.binding(function() {
        return currentImage.status !== Image.Loading && otherImage.status !==
Image.Loading
    })
*/
}

After modifying the file and restarting Plasma Shell the issue was gone: screen
redraws only occurred once in a second and CPU usage was down to 0%. That
redrawing occurred because of a plasmoid update, which is normal. However,
there is one thing that i noted: whenever that plasmoid updates, the whole
screen is redrawn, while on my other PC, which was never affected by this issue
(see comment 109), only the bottom panel where the same plasmoid is located is
redrawn.

By the way, there is one other glitch which occurs on both of my PCs and might
be related. When i log in or restart Plasma Shell, the first slideshow image
appears immediately but then it immediately cross-fades into a new slideshow
image. Like if the first image times out immediately.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to