Bug 500402

Summary: Excess CPU usage from png_read_image
Product: [Plasma] kwin Reporter: derp <seria.warty-0m>
Component: performanceAssignee: KWin default assignee <kwin-bugs-null>
Status: REPORTED ---    
Severity: normal CC: kdedev, nate
Priority: NOR    
Version First Reported In: 6.3.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: sysprof screenshot

Description derp 2025-02-19 12:54:27 UTC
Created attachment 178584 [details]
sysprof screenshot

SUMMARY

I noticed excess cpu usage from png_read_image when benchmarking maximize-unmaximize scenario, related to SVG rendering.
This png loading can likely be cached.
I am not sure if it's related to the cursor or the window decoration drawing app icon.

The tested app was Discord with ozone Wayland.

STEPS TO REPRODUCE
1. Maximize the window by dragging to the top and then back to unmaximize
2. Repeat several times
3. Observe sysprof results

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: Fedora 41 AMDGPU
KDE Plasma Version: 6.3.0 
KDE Frameworks Version: 6.11.0 
Qt Version: 6.8.2

ADDITIONAL INFORMATION

attached sysprof screenshot