dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
From: bugzilla-daemon@freedesktop.org
To: dri-devel@lists.freedesktop.org
Subject: [Bug 97879] [amdgpu] Rocket League: long hangs (several seconds) when loading assets (models/textures/shaders?)
Date: Wed, 08 Feb 2017 12:39:49 +0000	[thread overview]
Message-ID: <bug-97879-502-z4UCvyC0Nw@http.bugs.freedesktop.org/> (raw)
In-Reply-To: <bug-97879-502@http.bugs.freedesktop.org/>


[-- Attachment #1.1: Type: text/plain, Size: 1166 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=97879

--- Comment #68 from Marek Olšák <maraeo@gmail.com> ---
The long hangs are spent in an upload/decompression thread the game uses. The
thread doesn't use any GL calls.

My theory that's now confirmed was that the game maps buffers in VRAM and does
read-modify-write on that memory in that thread. We know that direct VRAM
access is uncached and super slow if it's not a series of sequential writes
that is write-combined on the CPU, which is like a write-only cache. Games
typically upload data using a sequential copy/fill, which is why we had not
seen this issue before.

If the game used the MAP READ flag, the driver would return a mapping in RAM
with caching enabled. You'll also get that if you set the CLIENT STORAGE bit in
glBufferStorage.

For completeness, you can also get a mapping in RAM that's uncached. The CPU
and GPU performance is somewhere between the VRAM and cached RAM. We use it for
streaming because the GPU has faster access to RAM uncached by the CPU.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2065 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

  parent reply	other threads:[~2017-02-08 12:39 UTC|newest]

Thread overview: 94+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <bug-97879-502@http.bugs.freedesktop.org/>
2016-09-20 23:28 ` [Bug 97879] [amdgpu] Rocket League: long hangs (several seconds) when loading assets (models/textures/shaders?) bugzilla-daemon
2016-09-21  2:05 ` bugzilla-daemon
2016-09-21  8:05 ` bugzilla-daemon
2016-09-21 14:59 ` bugzilla-daemon
2016-09-21 18:04 ` bugzilla-daemon
2016-09-21 19:01 ` bugzilla-daemon
2016-09-21 19:02 ` bugzilla-daemon
2016-09-21 19:02 ` bugzilla-daemon
2016-09-21 19:07 ` bugzilla-daemon
2016-09-21 19:15 ` bugzilla-daemon
2016-09-22 12:27 ` bugzilla-daemon
2016-09-22 17:47 ` bugzilla-daemon
2016-09-23  1:15 ` bugzilla-daemon
2016-09-24 15:19 ` bugzilla-daemon
2016-09-24 23:58 ` bugzilla-daemon
2016-09-24 23:58 ` bugzilla-daemon
2016-09-25  0:00 ` bugzilla-daemon
2016-09-25  0:09 ` bugzilla-daemon
2016-09-25  0:10 ` bugzilla-daemon
2016-09-25  0:11 ` bugzilla-daemon
2016-09-26 11:12 ` bugzilla-daemon
2016-09-26 18:07 ` bugzilla-daemon
2016-09-26 18:09 ` bugzilla-daemon
2016-09-27  8:49 ` bugzilla-daemon
2016-09-27  9:11 ` bugzilla-daemon
2016-09-27 15:23 ` bugzilla-daemon
2016-09-27 15:26 ` bugzilla-daemon
2016-09-27 15:47 ` bugzilla-daemon
2016-09-27 16:07 ` bugzilla-daemon
2016-09-27 18:45 ` bugzilla-daemon
2016-09-28  2:40 ` bugzilla-daemon
2016-10-15 11:16 ` bugzilla-daemon
2016-10-15 14:51 ` bugzilla-daemon
2016-10-15 15:35 ` bugzilla-daemon
2016-10-15 16:00 ` bugzilla-daemon
2016-10-16 11:55 ` bugzilla-daemon
2016-10-16 12:41 ` bugzilla-daemon
2016-10-16 14:29 ` bugzilla-daemon
2016-10-25 14:52 ` bugzilla-daemon
2016-10-28 12:49 ` bugzilla-daemon
2016-10-31  3:32 ` bugzilla-daemon
2016-10-31 11:51 ` bugzilla-daemon
2016-11-02 19:13 ` bugzilla-daemon
2016-11-11 18:27 ` bugzilla-daemon
2016-11-11 23:49 ` bugzilla-daemon
2016-11-15 17:25 ` bugzilla-daemon
2016-11-15 20:38 ` bugzilla-daemon
2017-01-06 22:23 ` bugzilla-daemon
2017-01-09  7:12 ` bugzilla-daemon
2017-01-10  4:50 ` bugzilla-daemon
2017-01-10 17:02 ` bugzilla-daemon
2017-01-13 22:22 ` bugzilla-daemon
2017-01-24 17:59 ` bugzilla-daemon
2017-01-24 18:20 ` bugzilla-daemon
2017-01-25  1:08 ` bugzilla-daemon
2017-01-25 17:02 ` bugzilla-daemon
2017-01-25 17:34 ` bugzilla-daemon
2017-01-26  2:28 ` bugzilla-daemon
2017-01-26  4:35 ` bugzilla-daemon
2017-01-26 14:17 ` bugzilla-daemon
2017-01-26 14:22 ` bugzilla-daemon
2017-02-07 10:40 ` bugzilla-daemon
2017-02-07 10:41 ` bugzilla-daemon
2017-02-07 12:21 ` bugzilla-daemon
2017-02-07 13:32 ` bugzilla-daemon
2017-02-07 17:07 ` bugzilla-daemon
2017-02-07 18:30 ` bugzilla-daemon
2017-02-07 21:34 ` bugzilla-daemon
2017-02-08  1:08 ` bugzilla-daemon
2017-02-08 12:39 ` bugzilla-daemon [this message]
2017-02-08 18:16 ` bugzilla-daemon
2017-02-08 18:23 ` bugzilla-daemon
2017-02-08 18:36 ` bugzilla-daemon
2017-02-08 18:37 ` bugzilla-daemon
2017-02-09 12:48 ` bugzilla-daemon
2017-02-10  0:59 ` bugzilla-daemon
2017-02-10  1:05 ` bugzilla-daemon
2017-02-10  2:08 ` bugzilla-daemon
2017-02-10 12:38 ` bugzilla-daemon
2017-02-10 18:10 ` bugzilla-daemon
2017-02-10 20:13 ` bugzilla-daemon
2017-02-10 22:23 ` bugzilla-daemon
2017-02-12 15:08 ` bugzilla-daemon
2017-02-12 16:45 ` bugzilla-daemon
2017-02-13  3:23 ` bugzilla-daemon
2017-02-13  9:22 ` bugzilla-daemon
2017-02-13 13:13 ` bugzilla-daemon
2017-02-13 13:19 ` bugzilla-daemon
2017-02-13 14:34 ` bugzilla-daemon
2017-02-13 19:53 ` bugzilla-daemon
2017-02-14  0:08 ` bugzilla-daemon
2017-02-14  1:12 ` bugzilla-daemon
2017-02-14  9:51 ` bugzilla-daemon
2017-02-16 20:28 ` bugzilla-daemon

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=bug-97879-502-z4UCvyC0Nw@http.bugs.freedesktop.org/ \
    --to=bugzilla-daemon@freedesktop.org \
    --cc=dri-devel@lists.freedesktop.org \
    /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).