Skip to contentSkip to conversation

Trine 3 takes long time to load

Bug 100426 [email protected] 1 participant 9 messages Mar 28, 2017 – Apr 28, 2017

lore
Share & tools
lore
#0 lore raw

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

Bug ID: 100426
Summary: Trine 3 takes long time to load
Product: Mesa
Version: git
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/Gallium/radeonsi
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]

Trine 3 [GOG version] takes 50 seconds to load on first run (empty shader cache). On subsequent runs, it takes 25 seconds (apparently since shader cache is already populated).

Also, the CPU is loaded for me around 25% during game starting, so it looks like shader compilation doesn't utilize all available cores.

OS: Debian testing x86-64
GPU: AMD RX480 / 4GB VRAM
CPU: Intel Core i7 4770 (3.40GHz) / 16GB RAM
OpenGL renderer string: Gallium 0.4 on AMD POLARIS10 (DRM 3.8.0 / 4.9.0-2-amd64, LLVM 3.9.1)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 17.1.0-devel (git-af73acca2b)

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#1 lore raw

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

Timothy Arceri <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #1 from Timothy Arceri <[email protected]> ---
25 second compile time is not all that bad. This far from the worse example of compile times in Mesa.

I'm tempted to close this bug as I'm not convinced there is anything special about Trine 3 here. Are you able to use the perf tool to see where in the compiler we are spending lots of time? Or at the very least grab an apitrace
[1] of the game at startup and upload it somewhere so that I can use this to take a quick look.

[1] https://github.com/apitrace/apitrace/wiki/Steam

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw
In reply to [email protected]

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

--- Comment #2 from Shmerl <[email protected]> ---
Created attachment 131110
--> https://bugs.freedesktop.org/attachment.cgi?id=131110&action=edit
apitrace of Trine 3 (empty mesa cache)

This is a trace with empty mesa cache, Mesa 17.1.0-devel (git-af73acca2b). I interrupted it right before it hit 50 seconds, in order to prevent it from bloating up.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw
In reply to [email protected]

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

--- Comment #3 from Shmerl <[email protected]> ---
Just for the reference, this is GOG, not Steam version, I don't know if they differ.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw
In reply to [email protected]

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

--- Comment #4 from Shmerl <[email protected]> ---
Created attachment 131111
--> https://bugs.freedesktop.org/attachment.cgi?id=131111&action=edit
apitrace of Trine 3 (empty mesa cache)

A trace with already filled mesa cache, Mesa 17.1.0-devel (git-af73acca2b). I interrupted it a couple of seconds before it hit 25 seconds.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#5 lore raw
In reply to [email protected]

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

--- Comment #5 from Shmerl <[email protected]> ---
Sorry, wrong description in the second attachment. It should say: apitrace of Trine 3 (filled mesa cache).

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#6 lore raw
In reply to [email protected]

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

Timothy Arceri <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |NOTABUG

--- Comment #6 from Timothy Arceri <[email protected]> --- Thanks for the trace. However taking a look, there is nothing here that is taking an abnormal amount of cpu, its well know that compile times are not as good as we would like in Mesa, but this is an ongoing process.

I don't see any need to keep this bug open.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#7 lore raw
In reply to [email protected]

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

--- Comment #7 from Shmerl <[email protected]> --- (In reply to Timothy Arceri from comment #6)

Quoted 2 lines

its well know that compile times are not
as good as we would like in Mesa, but this is an ongoing process.

Is there a plan to make compilation more parallelized when the processor allows it?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#8 lore raw
In reply to [email protected]

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

--- Comment #8 from Timothy Arceri <[email protected]> --- The radeonsi backend already does this where possible. The glsl compiler front end is not currently thread safe, there have been a couple of attempts at this over the years but I don't think anyone is working on this currently.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel