From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 106175] amdgpu.dc=1 shows performance issues with Xorg compositors when moving windows Date: Tue, 20 Nov 2018 00:35:50 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1221543692==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 8F4596E2DF for ; Tue, 20 Nov 2018 00:35:50 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1221543692== Content-Type: multipart/alternative; boundary="15426741504.c3d14.12484" Content-Transfer-Encoding: 7bit --15426741504.c3d14.12484 Date: Tue, 20 Nov 2018 00:35:50 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D106175 --- Comment #53 from bmilreu@gmail.com --- (In reply to rropid from comment #45) > (In reply to bmilreu from comment #43) > > If devs want an easy test case, use these links for reproducing it in > > chromium: > >=20 > > https://www.vsynctester.com/ > > https://www.testufo.com/photo > > https://www.slither.io > >=20 > > move the cursor around, move/resize some windows. you will notice it > >=20 > > the vsync/cursor stutters and frame-skips are pretty noticeable with dc= =3D1 on > > all three links > >=20 > > KWin, compton, TearFree, mutter, xfwm4 all have the same problems. >=20 > I just tried dc=3D1 and I only seem to have a problem if I use TearFree. > Things are totally fine without TearFree. >=20 > To be clear about what I'm doing here right now: >=20 > I made sure DC is enabled: >=20 > $ systool -vm amdgpu | grep dc > dc =3D "1" > $ dmesg | grep -i display > [ 1.014297] [drm] Display Core initialized with v3.1.59! >=20 > I removed TearFree from my X config: >=20 > $ cat /etc/X11/xorg.conf.d/20-amdgpu.conf=20 > Section "OutputClass" > Identifier "my amdgpu settings" > MatchDriver "amdgpu" > Option "DRI" "3" > EndSection >=20 > And I started Compton like this to make sure it's a clean config: >=20 > $ compton --config /dev/null --backend glx --vsync opengl >=20 > With this setup, I don't seem to have any stutter. I visited the websites > you mention in a Chromium window, then opened another window and tried > moving things around and resizing. It behaves fine, same as what I know f= rom > normally using dc=3D0. >=20 > Kernel is 4.19.2, Mesa 18.2.4, Xorg 1.20.3, the GPU is a RX480, monitor is > 60 Hz. >=20 > After I had typed this, I have now added TearFree to the X config and > restarted X: >=20 > $ cat /etc/X11/xorg.conf.d/20-amdgpu.conf=20 > Section "OutputClass" > Identifier "my amdgpu settings" > MatchDriver "amdgpu" > Option "TearFree" "true" > Option "DRI" "3" > EndSection >=20 > Now, with TearFree enabled, things are super terrible. Trying to move a > window around has extreme stutter, it seems to drop frames. If I restart > Compton with "GALLIUM_HUD=3Dfps" and then try moving a window around in > circles, I can see it stays below 40 fps instead of hitting the 60 fps th= at > it should be running at. "compton --vsync opengl" is a case less/not affected by this in my setup, t= ry --vsync opengl-swc, --vsync opengl-oml or --vsync opengl-mswc Also try other compositors. Kwin, mutter, xfwm4 --=20 You are receiving this mail because: You are the assignee for the bug.= --15426741504.c3d14.12484 Date: Tue, 20 Nov 2018 00:35:50 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated

Comme= nt # 53 on bug 10617= 5 from bmilreu@gmail.co= m
(In reply to rropid from comment #45)
> (In reply to bmilreu from comment #43)
> > If devs want an easy test case, use these links for reproducing i=
t in
> > chromium:
> >=20
> > https://www.vsynctester.=
com/
> > https://www.testufo.com=
/photo
> > https://www.slither.io
> >=20
> > move the cursor around, move/resize some windows. you will notice=
 it
> >=20
> > the vsync/cursor stutters and frame-skips are pretty noticeable w=
ith dc=3D1 on
> > all three links
> >=20
> > KWin, compton, TearFree, mutter, xfwm4 all have the same problems.
>=20
> I just tried dc=3D1 and I only seem to have a problem if I use TearFre=
e.
> Things are totally fine without TearFree.
>=20
> To be clear about what I'm doing here right now:
>=20
> I made sure DC is enabled:
>=20
>   $ systool -vm amdgpu | grep dc
>       dc                  =3D "1"
>   $ dmesg | grep -i display
>   [    1.014297] [drm] Display Core initialized with v3.1.59!
>=20
> I removed TearFree from my X config:
>=20
>   $ cat /etc/X11/xorg.conf.d/20-amdgpu.conf=20
>   Section "OutputClass"
>       Identifier "my amdgpu settings"
>       MatchDriver "amdgpu"
>       Option "DRI" "3"
>   EndSection
>=20
> And I started Compton like this to make sure it's a clean config:
>=20
>   $ compton --config /dev/null --backend glx --vsync opengl
>=20
> With this setup, I don't seem to have any stutter. I visited the websi=
tes
> you mention in a Chromium window, then opened another window and tried
> moving things around and resizing. It behaves fine, same as what I kno=
w from
> normally using dc=3D0.
>=20
> Kernel is 4.19.2, Mesa 18.2.4, Xorg 1.20.3, the GPU is a RX480, monito=
r is
> 60 Hz.
>=20
> After I had typed this, I have now added TearFree to the X config and
> restarted X:
>=20
>   $ cat /etc/X11/xorg.conf.d/20-amdgpu.conf=20
>   Section "OutputClass"
>       Identifier "my amdgpu settings"
>       MatchDriver "amdgpu"
>       Option "TearFree" "true"
>       Option "DRI" "3"
>   EndSection
>=20
> Now, with TearFree enabled, things are super terrible. Trying to move a
> window around has extreme stutter, it seems to drop frames. If I resta=
rt
> Compton with "GALLIUM_HUD=3Dfps" and then try moving a windo=
w around in
> circles, I can see it stays below 40 fps instead of hitting the 60 fps=
 that
> it should be running at.

"compton --vsync opengl" is a case less/not affected by this in m=
y setup, try
--vsync opengl-swc, --vsync opengl-oml or --vsync opengl-mswc

Also try other compositors. Kwin, mutter, xfwm4


You are receiving this mail because:
  • You are the assignee for the bug.
= --15426741504.c3d14.12484-- --===============1221543692== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1221543692==--