Bug 496221 - Shift web browser, OBS and Plasma into weaker GPU while heavy apps are being executed
Summary: Shift web browser, OBS and Plasma into weaker GPU while heavy apps are being ...
Status: CONFIRMED
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 6.2.3
Platform: Arch Linux Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: efficiency-and-performance
Depends on:
Blocks:
 
Reported: 2024-11-13 15:33 UTC by Fernando M. Muniz
Modified: 2024-11-13 17:26 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fernando M. Muniz 2024-11-13 15:33:37 UTC
When executing heavy apps (like Blender and games) in multi-GPU computers while having a web browser open, Plasma should force the web browser into only using the less powerful GPU.
It should benefit live streamers, because they play games while having their chats on their second monitor.

Perhaps OBS and Plasma should also be switched into the less powerful GPU.

I apologise if it already does that, or if there's a good reason why it doesn't.
Comment 1 Zamundaaa 2024-11-13 17:14:44 UTC
Unfortunately currently KWin doesn't have any influence over what GPU apps are using, and apps don't support switching between GPUs either. This is in progress with https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/268 though.

FWIW most likely moving apps to a different GPU will only have a negative performance impact, but I suppose it can't hurt to try it once we have the infrastucture for doing this kind of thing.
Comment 2 Fernando M. Muniz 2024-11-13 17:26:57 UTC
(In reply to Zamundaaa from comment #1)
> Unfortunately currently KWin doesn't have any influence over what GPU apps
> are using, and apps don't support switching between GPUs either. This is in
> progress with
> https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/
> 268 though.
> 
> FWIW most likely moving apps to a different GPU will only have a negative
> performance impact, but I suppose it can't hurt to try it once we have the
> infrastucture for doing this kind of thing.

I think it's worth trying because this is similar to what modern gaming consoles do, if I understood correctly.