amd-gfx.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
From: Alex Deucher <alexdeucher@gmail.com>
To: Javad Karabi <karabijavad@gmail.com>
Cc: amd-gfx list <amd-gfx@lists.freedesktop.org>
Subject: Re: slow rx 5600 xt fps
Date: Tue, 19 May 2020 15:13:50 -0400	[thread overview]
Message-ID: <CADnq5_N-vLuyqo_rqjy44nwdKPWyiO8cpAJN9pFk79wjwKi7gw@mail.gmail.com> (raw)
In-Reply-To: <CAEOHGOm=g_VGa5939Qi_HEXAfuUKuy3tXURx9TKg+n==dUDqPQ@mail.gmail.com>

On Tue, May 19, 2020 at 2:59 PM Javad Karabi <karabijavad@gmail.com> wrote:
>
> given this setup:
> laptop -thunderbolt-> razer core x -> xfx rx 5600 xt raw 2 -hdmi-> monitor
> DRI_PRIME=1 glxgears gears gives me ~300fps
>
> given this setup:
> laptop -thunderbolt-> razer core x -> xfx rx 5600 xt raw 2
> laptop -hdmi-> monitor
>
> glx gears gives me ~1800fps
>
> this doesnt make sense to me because i thought that having the monitor
> plugged directly into the card should give best performance.
>

Do you have displays connected to both GPUs?  If you are using X which
ddx are you using?  xf86-video-modesetting or xf86-video-amdgpu?
IIRC, xf86-video-amdgpu has some optimizations for prime which are not
yet in xf86-video-modesetting.  Which GPU is set up as the primary?
Note that the GPU which does the rendering is not necessarily the one
that the displays are attached to.  The render GPU renders to it's
render buffer and then that data may end up being copied other GPUs
for display.  Also, at this point, all shared buffers have to go
through system memory (this will be changing eventually now that we
support device memory via dma-buf), so there is often an extra copy
involved.

> theres another really weird issue...
>
> given setup 1, where the monitor is plugged in to the card:
> when i close the laptop lid, my monitor is "active" and whatnot, and i
> can "use it" in a sense
>
> however, heres the weirdness:
> the mouse cursor will move along the monitor perfectly smooth and
> fine, but all the other updates to the screen are delayed by about 2
> or 3 seconds.
> that is to say, its as if the laptop is doing everything (e.g. if i
> open a terminal, the terminal will open, but it will take 2 seconds
> for me to see it)
>
> its almost as if all the frames and everything are being drawn, and
> the laptop is running fine and everything, but i simply just dont get
> to see it on the monitor, except for one time every 2 seconds.
>
> its hard to articulate, because its so bizarre. its not like, a "low
> fps" per se, because the cursor is totally smooth. but its that
> _everything else_ is only updated once every couple seconds.

This might also be related to which GPU is the primary.  It still may
be the integrated GPU since that is what is attached to the laptop
panel.  Also the platform and some drivers may do certain things when
the lid is closed.  E.g., for thermal reasons, the integrated GPU or
CPU may have a more limited TDP because the laptop cannot cool as
efficiently.

Alex
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

  reply	other threads:[~2020-05-19 19:14 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-19 18:59 slow rx 5600 xt fps Javad Karabi
2020-05-19 19:13 ` Alex Deucher [this message]
2020-05-19 19:20   ` Javad Karabi
2020-05-19 19:44     ` Javad Karabi
2020-05-19 20:01       ` Javad Karabi
2020-05-19 21:34         ` Alex Deucher
2020-05-19 21:13       ` Alex Deucher
2020-05-19 21:22         ` Javad Karabi
2020-05-19 21:42           ` Alex Deucher
2020-05-20  1:16             ` Javad Karabi
2020-05-20  1:19               ` Javad Karabi
2020-05-20  1:20               ` Bridgman, John
2020-05-20  1:35                 ` Javad Karabi
2020-05-20  2:29               ` Alex Deucher
2020-05-20 22:04                 ` Javad Karabi
2020-05-21  3:11                   ` Alex Deucher
2020-05-21 19:03                     ` Javad Karabi
2020-05-21 19:15                       ` Alex Deucher
2020-05-21 21:21                         ` Javad Karabi
2020-05-22 22:48                           ` Javad Karabi
2020-05-23 10:17                             ` Michel Dänzer
2020-05-25  1:03                               ` Javad Karabi
2020-05-25  1:29                                 ` Javad Karabi
2020-05-19 21:32     ` Alex Deucher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CADnq5_N-vLuyqo_rqjy44nwdKPWyiO8cpAJN9pFk79wjwKi7gw@mail.gmail.com \
    --to=alexdeucher@gmail.com \
    --cc=amd-gfx@lists.freedesktop.org \
    --cc=karabijavad@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).