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: Mon, 19 Nov 2018 03:22:14 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0224656104==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id 424C189B0B for ; Mon, 19 Nov 2018 03:22:15 +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 --===============0224656104== Content-Type: multipart/alternative; boundary="15425977352.3e4eAEC.2877" Content-Transfer-Encoding: 7bit --15425977352.3e4eAEC.2877 Date: Mon, 19 Nov 2018 03:22:15 +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 #45 from rropid@gmail.com --- (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. I just tried dc=3D1 and I only seem to have a problem if I use TearFree. Th= ings are totally fine without TearFree. To be clear about what I'm doing here right now: I made sure DC is enabled: $ systool -vm amdgpu | grep dc dc =3D "1" $ dmesg | grep -i display [ 1.014297] [drm] Display Core initialized with v3.1.59! I removed TearFree from my X config: $ cat /etc/X11/xorg.conf.d/20-amdgpu.conf=20 Section "OutputClass" Identifier "my amdgpu settings" MatchDriver "amdgpu" Option "DRI" "3" EndSection And I started Compton like this to make sure it's a clean config: $ compton --config /dev/null --backend glx --vsync opengl With this setup, I don't seem to have any stutter. I visited the websites y= ou mention in a Chromium window, then opened another window and tried moving things around and resizing. It behaves fine, same as what I know from norma= lly using dc=3D0. Kernel is 4.19.2, Mesa 18.2.4, Xorg 1.20.3, the GPU is a RX480, monitor is = 60 Hz. After I had typed this, I have now added TearFree to the X config and resta= rted X: $ 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 Now, with TearFree enabled, things are super terrible. Trying to move a win= dow around has extreme stutter, it seems to drop frames. If I restart Compton w= ith "GALLIUM_HUD=3Dfps" and then try moving a window around in circles, I can s= ee it stays below 40 fps instead of hitting the 60 fps that it should be running = at. --=20 You are receiving this mail because: You are the assignee for the bug.= --15425977352.3e4eAEC.2877 Date: Mon, 19 Nov 2018 03:22:15 +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 # 45 on bug 10617= 5 from rropid@gmail.com
(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/<=
/a>
> https://www.testufo.com/phot=
o
> 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 d=
c=3D1 on
> all three links
>=20
> KWin, compton, TearFree, mutter, xfwm4 all have the same problems.

I just tried dc=3D1 and I only seem to have a problem if I use TearFree. Th=
ings
are totally fine without TearFree.

To be clear about what I'm doing here right now:

I made sure DC is enabled:

  $ systool -vm amdgpu | grep dc
      dc                  =3D "1"
  $ dmesg | grep -i display
  [    1.014297] [drm] Display Core initialized with v3.1.59!

I removed TearFree from my X config:

  $ cat /etc/X11/xorg.conf.d/20-amdgpu.conf=20
  Section "OutputClass"
      Identifier "my amdgpu settings"
      MatchDriver "amdgpu"
      Option "DRI" "3"
  EndSection

And I started Compton like this to make sure it's a clean config:

  $ compton --config /dev/null --backend glx --vsync opengl

With this setup, I don't seem to have any stutter. I visited the websites y=
ou
mention in a Chromium window, then opened another window and tried moving
things around and resizing. It behaves fine, same as what I know from norma=
lly
using dc=3D0.

Kernel is 4.19.2, Mesa 18.2.4, Xorg 1.20.3, the GPU is a RX480, monitor is =
60
Hz.

After I had typed this, I have now added TearFree to the X config and resta=
rted
X:

  $ 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

Now, with TearFree enabled, things are super terrible. Trying to move a win=
dow
around has extreme stutter, it seems to drop frames. If I restart Compton w=
ith
"GALLIUM_HUD=3Dfps" and then try moving a window around in circle=
s, I can see it
stays below 40 fps instead of hitting the 60 fps that it should be running =
at.


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