Bug 430143

Summary: Gwenview performance improvement requested for panning zoomed image
Product: [Applications] gwenview Reporter: Rainer Finke <rainer>
Component: generalAssignee: Gwenview Bugs <gwenview-bugs-null>
Status: CONFIRMED ---    
Severity: wishlist CC: cwo.kde, madness742, nate, strong.drum0546
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Rainer Finke 2020-12-08 11:35:20 UTC
When using the zoom slider on the bottom right in Gwenview 20.11.90 on Wayland, the zoom is often delayed and really sluggish. If I use the mouse wheel (enabled in settings) to zoom, it works almost instant.

STEPS TO REPRODUCE
1. Open picture in Gwenview
2. Zoom with slider

OBSERVED RESULT
Zoom is slow

EXPECTED RESULT
Zoom works instantly and fast

Operating System: Arch Linux
KDE Plasma Version: 5.20.4
KDE Frameworks Version: 5.76.0
Qt Version: 5.15.2
Kernel Version: 5.9.12-arch1-1
OS Type: 64-bit
Processors: 24 × AMD Ryzen 9 3900X 12-Core Processor
Memory: 31.4 GiB of RAM
Graphics Processor: AMD Radeon VII
Comment 1 Lenzoid 2025-06-11 20:19:21 UTC
Thanks for the report! It's not reproducible in 25.07.70 and I can see no recent similar reports about this, so there's a strong chance this is fixed by now. If you’re still experiencing it, let us know — we’re happy to reopen it!
Comment 2 madness742 2025-06-11 20:53:30 UTC
(In reply to Lenzoid from comment #1)
> Thanks for the report! It's not reproducible in 25.07.70 and I can see no
> recent similar reports about this, so there's a strong chance this is fixed
> by now. If you’re still experiencing it, let us know — we’re happy to reopen
> it!

Hi! Could you please confirm if it's not reproducible using the 30mb sample mentioned in Bug 504267. The window must be maximised, and the zoom percentage should be set to 35%.

It's much more noticeable at 2560x1440 compared to 1920x1080. For some reason the other zoom percentages have less lag, 100% and 25% are much smoother than 35% zoom. Restoring the window to a smaller size also makes it smoother.

I can reproduce it in KDE Neon Unstable, but it ships with an older version of Gwenview (25.04.1).

KDE Neon Unstable (neon-unstable-20250608-1147)
KDE Plasma Version: 6.4.80
KDE Frameworks Version: 6.15.0
QT Version: 6.9.0
Kernel: 6.11.0
Comment 3 Lenzoid 2025-06-11 21:15:39 UTC
Yes I tried with Gwenview 25.04.2 (from Flatpak) and 25.04.2 from 6.4 Beta. I could not exactly reproduce 35% zoom but 36%. Transition from picture to picture is smooth, also to and from the huge pictures.

Operating System: Arch Linux 
KDE Plasma Version: 6.3.91
KDE Frameworks Version: 6.14.0
Qt Version: 6.9.1
Kernel Version: 6.14.10-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5700X3D 8-Core Processor
Memory: 32 GiB of RAM (31.3 GiB usable)
Graphics Processor: NVIDIA GeForce RTX 2070 SUPER 
Manufacturer: Micro-Star International Co., Ltd.
Product Name: MS-7B85
System Version: 1.0
nvidia-open-dkms 575.57.08-1
Comment 4 madness742 2025-06-15 06:09:22 UTC
I can also reproduce this on my Intel laptop, so it's not just exclusive to my AMD PC. On the laptop I had to find a different zoom percentage.

Operating System: Fedora Linux 42
KDE Plasma Version: 6.3.5
KDE Frameworks Version: 6.14.0
Qt Version: 6.9.1
Kernel Version: 6.14.9-300.fc42.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 2 × Intel® Core™2 Duo CPU     T9400  @ 2.53GHz
Memory: 3.7 GiB of RAM
Graphics Processor: llvmpipe
Manufacturer: LENOVO
Product Name: 6475R2G
System Version: ThinkPad T400
Comment 5 Lenzoid 2025-06-15 08:47:20 UTC
Thanks for reopening. I could reproduce _something_ thanks to the video you uploaded in the other ticket. These are my steps, can you please confirm that this is what we're talking about here?

Steps. See video here https://youtu.be/hwqxgo-iWY0
- Open big image (lets say >15 MB jpg)
- Zoom into the image
- Pan around the image

Noteworthy
- Effect is more pronounced the more pixels have to be rendered: higher screen resolution, big Gwenview window, big resolution pictures... 
- Reproducible on X11 and Wayland, on any fractional scaling level.
Comment 6 madness742 2025-06-15 17:44:32 UTC
Thank you for providing a video recording.

Yes, that is what I'm talking about. The recording is set to 28 FPS according to YouTube "statistics for nerds", but I can still see the slow performance.

It's much more noticeable when using a high refresh rate monitors (120hz or more). 

You could also compare it to Loupe (https://flathub.org/apps/org.gnome.Loupe), the difference is night and day.
Comment 7 Lenzoid 2025-06-15 19:44:35 UTC
Allright thanks for confirming!

I will ask someone to change severity to wishlist since it's an optimization issue. Maybe there *is* a way to utilize a more efficient method here for drawing the content.

Please see Comment #5 for steps.