Bolt icon indicating copy to clipboard operation
Bolt copied to clipboard

runelite performance

Open dyndulec opened this issue 7 months ago • 20 comments

Runelite performance using the GPU plugin, or especially the 177HD plugin, is far worse than it is on windows. 117HD drops to about 30 fps in mushroom meadow in fossil island, while on windows it keeps almost a steady 144 fps. GPU plugin can't keep steady 144 fps in a lot of places. Can't figure out the reason behind it. Any ideas?

OS: Arch Linux GPU: AMD 6700 XT

EDIT: tried both RADV and amdvlk vulkan drivers, tried both zink and radeonsi with both drivers, the result is still the same

dyndulec avatar Apr 18 '25 10:04 dyndulec

X11? Wayland? DE?

Renari avatar Apr 18 '25 19:04 Renari

kde plasma, tried both x11 and wayland, also tested on cinnamon x11, same results

running through terminal shows that the gpu plugins are in fact using the gpu, mesa and radeonsi, the performance is just poor for no reason

dyndulec avatar Apr 18 '25 19:04 dyndulec

Might be vulkan related, which gpu packages do you have installed?

lib32-mesa? vulkan-radeon? lib32-vulkan-radeon?

Renari avatar Apr 18 '25 20:04 Renari

Also would check with something like nvtop (supports amd) to confirm that it is using your gpu.

Renari avatar Apr 18 '25 20:04 Renari

it definitely is using the gpu, corectrl reports high usage and high clocks, the client itself also reports using it

as for the packages, i have all the drivers and wine dependencies installed, both 64 and 32 bit, every other game works fine, HDOS works fine, RS3 too, it's only runelite that's problematic

dyndulec avatar Apr 18 '25 20:04 dyndulec

High clocks does not mean the runelite plugin is using your GPU it just means something is using your GPU, that's why I recommended using nvtop because it gives you a process list specifically of things using your GPU.

Renari avatar Apr 18 '25 20:04 Renari

tried nvtop, shows java-24 pegging the gpu at a 100%

dyndulec avatar Apr 18 '25 20:04 dyndulec

Only thing I can think is one of the GPU plugin settings is behaving poorly I'd try turning everything down/off until you can get it to stop maxing your GPU and then turn on features from there.

Renari avatar Apr 18 '25 20:04 Renari

the settings in the plugins are exactly the same as they are in windows so there is no reason for worse performance in that aspect

dyndulec avatar Apr 18 '25 21:04 dyndulec

I have same issue on

  • Fedora 42 KDE
  • plasmashell 6.3.4
  • 6700XT on amdgpu
  • Vulkan 1.4.309
  • Wayland

GPU is on 100% usage, for example, at Xeric's Lookout, while in the same location on windows I would have stable 72+ fps (I do play on 72fps lock, so I don't have any drops)

Image

Testing different RuneLite settings the heaviest option are shadows - from Detailed to Off I gain 15fps (to 50) and of course drawing distance (60 -> 40 gives good 25fps). I do not think it is the issue with Bolt launcher, as I tested the exact same location with Jagex launcher via Wine, and I had exactly same FPS with jar runelite.

matejss avatar May 04 '25 21:05 matejss

I have the same issue. But it's somewhat recent, even using the bolt binary (not flatpak) and using my system java (openjdk 64bit) the performance dipped quite alot compared to 2 months ago for example.

(for reference I'm on OpenSUSE TW, Gnome 48 with wayland and nvidia, already tried X11 tho)

Chillsmeit avatar May 06 '25 16:05 Chillsmeit

Just to update: Idk if this is some sort of issue in Fedora and OpenSUSE (since they share alot of stuff). I switched to CachyOS (clean install) and all my performance issues just vanished. Actually I'm always capped now with 117HD and even cramped up some settings. Constant 110fps (my cap)

Chillsmeit avatar May 11 '25 10:05 Chillsmeit

I switched to CachyOS (clean install) and all my performance issues just vanished.

It'd be nice to know what the exact change is that fixed your performance issue, but there's such a broad range of things it could be, you'd probably never narrow it down.

I tend to think this kind of thing is an issue with the GPU or 117 plugins rather than the launcher or environment. RuneLite seems to use a software renderer by default. Although there is a drop-down to specify "off" or "opengl" in the RuneLite config GUI - I don't know what that does.

Adamcake avatar May 14 '25 14:05 Adamcake

It'd be nice to know what the exact change is that fixed your performance issue, but there's such a broad range of things it could be, you'd probably never narrow it down.

I tried to figure out on OpenSUSE TW what was affecting the performance but to no avail. CachyOS just worked but I honestly have no idea what the issue was.

I tend to think this kind of thing is an issue with the GPU or 117 plugins rather than the launcher or environment. RuneLite seems to use a software renderer by default. Although there is a drop-down to specify "off" or "opengl" in the RuneLite config GUI - I don't know what that does.

Regarding the drop-down boxes, it's related to the renderer the game will use, DirectDraw for Windows PCs since that's DirectX, OpenGL for Mac and Linux for 3D graphics and accel and off I supposed it is to disable hardware rendering and switch to software rendering only mode

Chillsmeit avatar May 14 '25 23:05 Chillsmeit

Long story short, the Bolt 0.14 release (via flatpak) works for me w.r.t. GPU utilization in runelite whereas Bolt 0.15 (also via flatpak) does not. One superficial difference I noticed is that 0.15 installs a *.GL32.* driver package whereas 0.14 installs a *.GL.* driver package. Details below:

I historically launch with the following (for nvidia optimus)

__NV_PRIME_RENDER_OFFLOAD=1 VK_LAYER_NV_optimus=NVIDIA_only __GLX_VENDOR_LIBRARY_NAME=nvidia flatpak run com.adamcake.Bolt

This worked great with runelite+gpu plugin for many months (X11, xfce4, debian)

I'd recently upgraded the Bolt flatpak to 0.15, observed FPS issues, and confirmed (thru nvtop) that the gpu was no longer in use.

I downgraded to the previous bolt launcher release (0.14), where the commit value below is obtained from the output of flatpak remote-info --log flathub com.adamcake.Bolt

sudo flatpak update --commit=1d33f98ced9c7a7bc9726cb038898fe98b131800bab5c723a296a0d593ce3693 com.adamcake.Bolt

And nvtop reports that the gpu is in use again when runelite is running

One observation I have from bouncing between Bolt version installations is that the Bolt 0.15 flatpak installation brings along org.freedesktop.Platform.GL32.nvidia-535-247-01, whereas Bolt 0.14 brings along org.freedesktop.Platform.GL.nvidia-535-247-01. Note the only difference is "GL" vs "GL32".

I have no idea how flatpak dependencies work/didn't try to dig into it but let me know if there's anything I can do or any further information I can pull. Thanks a ton for the great proj btw :)

mjbeardsley avatar May 22 '25 11:05 mjbeardsley

0.14 only downloads the libraries for your platform, so the 64-bit "GL*" ones. In 0.15, we added a bunch of 32-bit compat needed for running the official OSRS client through wine. If you're seeing only the 32-bit libraries get pulled in, that's probably because flatpak won't re-download something that's already installed.

Nvidia GPUs are known to be quite finnicky and needing an exact setup of flatpak packages to be installed. But at any rate, your claim is that RuneLite isn't using your GPU, whereas OP said their GPU usage is at 100%, so I do think you have two different issues.

Adamcake avatar May 22 '25 22:05 Adamcake

whereas OP said their GPU usage is at 100%

Sorry missed that! I see that comment now

ty for the flatpak deps crash course, if I get around to fiddling a bit more with it and come up with more definitive findings, I'll open something with those new findings. Don't want to waste your time lol, thanks again

mjbeardsley avatar May 22 '25 22:05 mjbeardsley

i've given up on this for a long time but i finally found a fix. for anyone having the same issue, the following fix will only work on arch based distros

install amdgpu pro: https://aur.archlinux.org/pkgbase/amdgpu-pro-installer get the AUR version of bolt: https://aur.archlinux.org/packages/bolt-launcher

then run the launcher through a terminal with "progl bolt"

another possible error at this point is with /usr/lib/amdgpu-pro/libGL.so.1, something to do with the executable stack, whatever that is, having this error prevents usage of gpu/117hd altogether. i fixed this one by: installing execstack: https://aur.archlinux.org/packages/execstack running "sudo execstack -c /usr/lib/amdgpu-pro/libGL.so.1"

after that, "progl bolt" works with the gpu plugins and performance is perfect, possibly even better than it was on windows.

dyndulec avatar Jul 11 '25 16:07 dyndulec

I've read a few other people saying they needed to use the proprietary AMD driver instead of mesa for good performance. That's generally not something I'd ever recommend doing, as the proprietary AMD driver is absolutely terrible. If that's the case someone needs to look at these GPU plugins and figure out what's so terribly wrong with their code for this to be the case.

Adamcake avatar Jul 11 '25 16:07 Adamcake

same for me. Official option in the launcher works flawlessly, but runelite capped to 50 fps, just not smooth at all i am on arch, nvidia, gnome, x11

ps: alright it was an easy fix for me. runelite confg -> gpu -> fps target 144

ReLoneR1 avatar Aug 10 '25 17:08 ReLoneR1