[ANV/DG2] Unexpectedly slow replay of RenderDoc frame capture of Resident Evil 4 Remake
System information
Click to expand
System:
Host: speles-new-pc Kernel: 6.7.0-0-MANJARO arch: x86_64 bits: 64
compiler: gcc v: 13.2.1
Desktop: KDE Plasma v: 5.27.10 tk: Qt v: 5.15.12 wm: kwin_wayland dm: SDDM
Distro: Manjaro Linux base: Arch Linux
CPU:
Info: 16-core (8-mt/8-st) model: 12th Gen Intel Core i9-12900K bits: 64
type: MST AMCP arch: Alder Lake rev: 2 cache: L1: 1.4 MiB L2: 14 MiB
L3: 30 MiB
Speed (MHz): avg: 1010 high: 1879 min/max: 800/5100:5200:3900 cores:
1: 1033 2: 800 3: 1699 4: 800 5: 836 6: 842 7: 1135 8: 800 9: 800 10: 800
11: 1848 12: 1879 13: 1583 14: 800 15: 800 16: 800 17: 1019 18: 992
19: 800 20: 992 21: 800 22: 800 23: 800 24: 800 bogomips: 153024
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
Device-1: Intel AlderLake-S GT1 vendor: ASRock driver: i915 v: kernel ports:
active: none empty: DP-3,HDMI-A-3,HDMI-A-4 bus-ID: 00:02.0
chip-ID: 8086:4680
Device-2: Intel DG2 [Arc A770] driver: i915 v: kernel arch: Gen-12.7 pcie:
speed: 2.5 GT/s lanes: 1 ports: active: DP-6,DP-7 empty: DP-4, DP-5,
HDMI-A-5, HDMI-A-6, HDMI-A-7 bus-ID: 03:00.0 chip-ID: 8086:56a0
Device-3: AMD Ellesmere [Radeon RX 470/480/570/570X/580/580X/590]
vendor: ASUSTeK driver: amdgpu v: kernel arch: GCN-4 pcie: speed: 8 GT/s
lanes: 4 ports: active: none empty: DP-1, DP-2, DVI-D-1, HDMI-A-1,
HDMI-A-2 bus-ID: 07:00.0 chip-ID: 1002:67df temp: 40.0 C
Display: wayland server: X.org v: 1.21.1.10 with: Xwayland v: 23.2.3
compositor: kwin_wayland driver: X: loaded: modesetting
alternate: fbdev,vesa dri: iris,radeonsi gpu: i915,i915,amdgpu
d-rect: 3760x3360 display-ID: 0
Monitor-1: DP-6 pos: bottom-l res: 2560x1440 size: N/A
Monitor-2: DP-7 pos: top-right res: 1200x1920 size: N/A
API: EGL v: 1.5 platforms: device: 0 drv: radeonsi device: 1 drv: iris
device: 2 drv: iris device: 3 drv: swrast surfaceless: drv: radeonsi
wayland: drv: iris x11: drv: iris inactive: gbm
API: OpenGL v: 4.6 compat-v: 4.5 vendor: intel mesa v: 23.3.3-manjaro1.1
glx-v: 1.4 direct-render: yes renderer: Mesa Intel Arc A770 Graphics (DG2)
device-ID: 8086:56a0 display-ID: :1.0
API: Vulkan v: 1.3.274 surfaces: xcb,xlib,wayland device: 0
type: discrete-gpu driver: mesa intel device-ID: 8086:56a0 device: 1
type: discrete-gpu driver: mesa radv device-ID: 1002:67df device: 2
type: integrated-gpu driver: mesa intel device-ID: 8086:4680
If applicable
- VKD3D version:
vkd3d-proton-2.11.1
- Wine/Proton version:
soda-experimental_8.0
- RenderDoc version:
v1.31+28.ga4ff744a0a
Describe the issue
Found this problem while trying to work on #10425.
Each EID selection in RenderDoc takes ~15 seconds to replay and load the correct state, even though the in-game performance of A770 is > 60 FPS. The time also doesn't meaningfully depend on game's graphic settings.
RADV + RX580 capture, in comparison, takes about 2 seconds to replay, while producing ~20 FPS ingame.
Regression
This behavior seems to be at least as old as the ability of ANV to properly run the RE4R itself.
Extra
Capture exibiting this behavior (taken on A770, mesa main a16033b6a75593d47c2a52a6709ff3e52592df28
): https://drive.google.com/file/d/1NRuTdpOgBVDZbifgMpX2ZG_uBei1emMz/view?usp=sharing