Framerate drops apparently due to ambient occlusion in Resident Evil 2 Remake
- OS: Fedora 32 Workstation
- GPU: RX 570
- Kernel version: 5.6.19
- Mesa version: 20.1.1
- Xserver version: 1.20.8
- Desktop manager and compositor: GNOME and Mutter
- DXVK version: 1.7 and 1.6-69
- Wine/Proton version: Proton-5.9-GE-2-MF, Proton-5.8-GE-2-MF, Proton 5.0-9, Proton 5.0-7 and Proton 4.11-13
When playing normally, framerate randomly drops. For instance, in RPD hall, I get 90+ FPS for a while and then it suddenly drops to 20-30 for apparently no reason. I can't see any pattern, it just happens, lasts some time (2, 5, 10 minutes, it depends) and goes back to normal. The thing is, switching ambient occlusion from none/SSAO/HDAO to HBAO+ then switching back again fixes the framerate... until it tanks again. The issue does not happen with AMDVLK, framerate is steady though lower (80 FPS vs. 100+). For the record, I have the exact same issue in Resident Evil 3 Demo, so it may be related to the RE Engine.
I tried with Mesa 20.0.7 and 20.1.1, I don't know if it used to happen before.