Adamcake / Bolt

An alternative launcher for your favourite MMO
GNU Affero General Public License v3.0
162 stars 23 forks source link

Problem running in wayland. #10

Closed machadofguilherme closed 9 months ago

machadofguilherme commented 9 months ago

As the title says, the game is completely frozen. Is there any way to configure an environment variable so that the game runs normally? I tried changing the "data/bolt-launcher/Jagex/launcher/preferences.cfg" file but without any success.

Adamcake commented 9 months ago

Hi, which game are you trying to run - RS3, Runelite, or HDOS?

Have you been able to get that game to run by any other means, such as directly installing its flatpak repo?

How did you install Bolt? (flatpak, AUR, other..?)

machadofguilherme commented 9 months ago

Bolt was installed via Flatpak. I play RS3, it works normally in the x11 session. My graphical environment is GNOME. I really liked this application, unfortunately I'm facing this problem when using GNOME with Wayland.

Adamcake commented 9 months ago

Ah, are you using an Nvidia GPU?

machadofguilherme commented 9 months ago

Intel. More specifically...:

Memory: 3.7 GiB Processor: Intel® Core™ i5-8250U × 8 Graphics: Software Rendering Disk capacity: 1.0 TB GNOME Version: 45.1 Window system: Wayland Kernel check: Linux 6.6.7-gentoo-dist

An addendum: In the x11 session, the game only ran correctly after I installed the "xf86-video-intel" package. Maybe this information will help you in some way.

Adamcake commented 9 months ago

Okay that's interesting. This issue is known to happen with nvidia + wayland + rs3, but I've never heard of it happening with intel before. For completeness's sake I'll point out that I've just tried launching the game in wayland, in gentoo on my AMD GPU, and that works fine.

You might like to try updating to Bolt version 0.7 which was released today, which adds wayland access to the flatpak package. It would be a sheer coincidence if that fixed the problem, but worth a try. You'd also want to set SDL_VIDEODRIVER=wayland in your environment.

Assuming that doesn't help, I should have some time tomorrow to try out intel+gentoo and see what happens.

machadofguilherme commented 9 months ago

Did not work. Even after adding the environment variable.

I compiled version 0.7, as you suggested. I have the Vulkan packages installed in addition to Mesa and LLVM. Everything updated.

I also had a problem with high resource consumption. You can get an idea by looking at the screenshot below as to why the image looks strange. image

Adamcake commented 9 months ago

Ah okay, well at least you were able to get in-game. You mentioned you were using "software rendering", what exactly do you mean? If this is being rendered entirely on the GPU then I'd expect it to look something like that, and it would explain the high/maxed CPU usage.

machadofguilherme commented 9 months ago

Regarding rendering, I just copied and pasted the information contained in "gnome-control-center". To be more precise, I have an Intel integrated GPU.

What catches my attention is that in the section with Xorg, I can play smoothly. The characters move, everything is fluid.

For some reason I don't know, in the section with Wayland the game becomes unplayable.

Just to clarify that information, I took it from here (this is data that GNOME provides in relation to hardware): image

Adamcake commented 9 months ago

If you switch to X11, and see the game run smoothly, what does that menu show?

machadofguilherme commented 9 months ago

By the way, would my make.conf file be of any use? Or an emerge --info to see the active flags on the system? It could be that I didn't configure something correctly.

On x11, the menu shows the following: image

Adamcake commented 9 months ago

Well there's the problem then. On X11 it's using the GPU, but on Wayland for whatever reason it's unable to use the GPU and is rendering without it. You'll have this same problem with almost any game.

It's probably a missing dependency or feature but there's not much I can do to help here since it's unrelated to this game or launcher.

machadofguilherme commented 9 months ago

Don't ask me what I did, I don't even understand, but the game is running wonderfully on GNOME with Wayland. I think I fixed the problem after leaving the system updating last night.

In any case, thank you very much for your availability. =D