Skip to contentSkip to conversation

POSTAL 2 poor performance at certain times, RadeonSI driver

Bug 97340 [email protected] 1 participant 6 messages Aug 14, 2016 – Feb 14, 2017

lore
Share & tools
lore
#0 lore raw

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

Bug ID: 97340
Summary: POSTAL 2 poor performance at certain times, RadeonSI
driver
Product: Mesa
Version: unspecified
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]

I have a Radeon R7 370 and running Mesa 12.0.1, I get horrible performance in certain areas or events of POSTAL 2, to the point where the game is almost unplayable.

This issue is easiest to reproduce on the level with the bank. Approaching the bank causes the framerate to get lower and lower, and entering it causes the game to immediately freeze for several seconds. If you rob the bank, the resulting firefight will cause the game to freeze repeatedly.

Using the exact same hardware, I've played the game using fglrx with much better performance. Help would be much appreciated.

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=97340

--- Comment #1 from Daniel Scharrer <[email protected]> --- Created attachment 125916
--> https://bugs.freedesktop.org/attachment.cgi?id=125916&action=edit
GALLIUM_HUD graphs for the scene

I can reproduce this on VI.

According to GALLIUM_HUD, the frame drops correspond to shader compilations. apitrace profiling shows the slowest calls are glDrawRangeElements, many of which take over 80ms (!). The calls don't use any user shaders so the compilations must be for internal shaders generated by Mesa to implement fixed-function functionality.

Trace:
http://constexpr.org/tmp/POSTAL2-radeonsi.2.trace.xz (73 MiB)

Not sure if there is a good way to fix this (besides making the shader compiler faster). Maybe there could be a lighting super-shader that can be used while more optimized variants are compiled.

Kernel: 4.7.0-gentoo
Mesa: git-a73116e
LLVM: r278309
GPU: R9 380X
CPU: FX 8350

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=97340

--- Comment #2 from Declan Hoare <[email protected]> --- It seems that this situation has been improved somewhat on Mesa Git in the last 12 hours. The freezes are still there, but they're shorter and less frequent.

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

[Bug 97340] [radeonsi] POSTAL 2 freezes during shader compilation

In reply to [email protected]

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

Vedran Miletić <[email protected]> changed:

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

            Summary|POSTAL 2 poor performance   |[radeonsi] POSTAL 2 freezes
                   |at certain times, RadeonSI  |during shader compilation
                   |driver                      |
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

[Bug 97340] [radeonsi] POSTAL 2 freezes during shader compilation

In reply to [email protected]

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

Vedran Miletić <[email protected]> changed:

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

             Blocks|                            |77449

Referenced Bugs:

https://bugs.freedesktop.org/show_bug.cgi?id=77449
[Bug 77449] Tracker bug for all bugs related to Steam titles

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

[Bug 97340] [radeonsi] POSTAL 2 freezes during shader compilation

In reply to [email protected]

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

Timothy Arceri <[email protected]> changed:

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

           Assignee|[email protected] |[email protected]
                   |.org                        |
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