| Summary: | Feature request: implement zero-copy shared buffers on iGPU+dGPU systems | ||
|---|---|---|---|
| Product: | [Plasma] kwin | Reporter: | Adel KARA SLIMANE <adel.ks> |
| Component: | egl | Assignee: | KWin default assignee <kwin-bugs-null> |
| Status: | RESOLVED NOT A BUG | ||
| Severity: | normal | CC: | xaver.hugl |
| Priority: | NOR | ||
| Version First Reported In: | 6.4.5 | ||
| Target Milestone: | --- | ||
| Platform: | Gentoo Packages | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: |
Kwin: Overwatch iGPU+dGPU utilization
Mutter: Overwatch iGPU+dGPU utilization |
||
|
Description
Adel KARA SLIMANE
2025-10-20 21:20:57 UTC
Created attachment 185936 [details]
Kwin: Overwatch iGPU+dGPU utilization
Created attachment 185937 [details]
Mutter: Overwatch iGPU+dGPU utilization
The (very much implemented) zero copy mode is not relevant for this at all. Your investigation is welcome, but like I already said, you just happen to hit direct scanout on Mutter, because you didn't have a color profile set there. There is really nothing that can be done about your setup. I am really sorry for bothering you, but there's something you seem to miss: - with the color profile disabled in KDE, the iGPU usage is still ~100%, - but it does fix VRR-FPS issue in bug 510579. - Gnome does not have that behavior and the iGPU usage is 0% I tried to disable fractional scaling in KDE (the only extra setting I had vs Gnome) but that made no difference. So there probably is something Kwin could do, given the difference in behavior in Kwin vs Mutter PS: see the two videos attached to understand what I mean. Thanks again! Okay, first thing to check would be if you actually get direct scanout, or if the color profile just happened to increase iGPU load enough to cause the issue. You can do that with the kwin debug console, just search for "kwin debug console" in krunner. The rightmost tab in it has the "showcompositing" effect, if you load it, it will show "compositing" in the top right unless direct scanout happens. The second thing to check, if you do get direct scanout, would be whether or not the iGPU is actually used by KWin or some other process. nvtop should be able to show that; you can run it through ssh (to not show anything above the fullscreen game). Hey, Thank you very much for your time and for the instruction for this nifty debug feature to show whether direct scanout is happening or not ! So, I wasn't hitting direct scanout, and... Sorry for being ignorant... I had the color profile set to 'built-in' thinking that was the default mode (which fixed my VRR-FPS sync issue), I changed it to 'None' and I started hitting direct scanout with 0% iGPU usage. Apologies... and thank you again ! I'll make sure to document it and have this information be available in the wild |