RuneScape on Mesa 21.1.1 (VEGA10) has bad performance and leaks memory
System information
inxi -GSC -xx
output on my desktop computer:
System:
Host: Iain-Desktop Kernel: 5.12.6-arch1-1-iain x86_64 bits: 64
compiler: gcc v: 11.1.0 Desktop: KDE Plasma 5.21.5 tk: Qt 5.15.2
wm: kwin_x11 dm: SDDM Distro: Arch Linux
CPU:
Info: 8-Core model: AMD Ryzen 7 2700 bits: 64 type: MT MCP arch: Zen+
rev: 2 cache: L2: 4 MiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
bogomips: 102229
Speed: 3468 MHz min/max: 1550/3200 MHz boost: enabled Core speeds (MHz):
1: 3468 2: 3484 3: 3475 4: 3277 5: 2758 6: 3494 7: 1397 8: 2386 9: 3501
10: 2702 11: 3047 12: 2449 13: 2358 14: 2460 15: 3510 16: 2948
Graphics:
Device-1: AMD Vega 10 XL/XT [Radeon RX Vega 56/64] vendor: Tul
driver: amdgpu v: kernel bus-ID: 0d:00.0 chip-ID: 1002:687f
Device-2: Logitech Webcam C270 type: USB driver: snd-usb-audio,uvcvideo
bus-ID: 3-2:2 chip-ID: 046d:0825
Display: x11 server: X.Org 1.20.11 compositor: kwin_x11 driver:
loaded: amdgpu resolution: 1: 1920x1080~144Hz 2: 1920x1080~60Hz
3: 1920x1080~60Hz s-dpi: 96
OpenGL: renderer: Radeon RX Vega (VEGA10 DRM 3.40.0 5.12.6-arch1-1-iain
LLVM 11.1.0)
v: 4.6 Mesa 21.1.1 direct render: Yes
I can also get the output on my laptop if needed, since my laptop (which has a Renoir APU) also seems to be affected.
Describe the issue
Since upgrading to Mesa versions 21.1.0 and above on my machines, I can no longer smoothly play RuneScape. On these versions, when I go through any loading transitions or run too far at once on the RuneScape surface, the game temporarily freezes, with each successive freeze within the same gameplay session being a longer duration than the last. RAM utilization also continuously increases the longer the game runs, and radeontop
indicates that VRAM and GTT utilization increases with each freeze.
Mesa versions 21.1.0 and 21.1.1 both have this issue on my machine. Reverting my Mesa packages to version 21.0.3-3 causes the game to function properly.
I'm using the native Linux port of the game, which isn't available on Steam.
I've recorded a video to demonstrate this problem, in which I visit a lot of different game locations in a row with radeontop
visible. The last 5 minutes or so of the video demonstrate the game functioning correctly on the same machine with older Mesa.