swaywm / sway

i3-compatible Wayland compositor
https://swaywm.org
MIT License
14.2k stars 1.08k forks source link

Lower performance then expected when using arc gpu even when application is rendered using a secondary device. #7914

Open Quackdoc opened 6 months ago

Quackdoc commented 6 months ago

Please fill out the following:

When using AMD to render the video, Sway will actually noticeably slow down, the cursor is noticeably slower and animations are worse.

Intel as MPV render device; image

AMD as MPV render device image

EDIT1: Intel as only device (to take the screenshot MPV was not fullscreen however clocks were not that different then when it was and I swapped back and forth between workspaces) image

EDIT2: this is how AMD looks like when it is rendering the video significantly less usage image

bl4ckb0ne commented 6 months ago

Sounds like a driver issue. Any information on your kernel? I used to drive an A380 and i had issues with DMABUF usage. On an early kernel (1-2 years ago)

Quackdoc commented 6 months ago

I am currently running 6.7.0-zen3-1 from arch, as for mesa I am on commit 74528273 https://gitlab.freedesktop.org/mesa/mesa/-/commit/745282736

EDIT: for context, here is Kwin using the AMD gpu to render, and sending it to the Intel GPU to display image

EDIT2: also here is MPV rendering on the GPU itself, Usage itself is still a bit high (for sure most likely a mesa issue), but the clock speeds are a performance tier lower at least image