I recently migrated from Sway to Hyprland, and I can simply say that Hyprland is a marvel and is incredibly faster than Sway in my opinion.
The only problem I'm having right now is that in Borderlands 2 (Proton) when I put the mouse over any option in the game, it takes about 2 seconds to react in the game, for example, if I put the mouse over the “Settings” option the reaction of the game is not immediate, but it takes a moment, and the funny thing is that in the game as such I do not have that problem, only in the inventories and menus, I can play? Yes, but it is uncomfortable
I already tried changing the version of Proton, forcing the game to run through x11 using SDL_VIDEODRIVER=x11 %command%, putting the game in full screen mode or minimized, in no case fixes the problem, and is specific to Borderlands 2, I've played different games and this has not happened to me and did not happen inside Sway.
Another curious thing to mention is that Borderlands 2 as such does not recognize the resolution of my monitor, but only appears “unidentified” among the Borderlands options, although it is in 1080p.
Thank for any help in advance.
Have you tried using Gamescope?
After several hours of trial and error, the problem was indeed corrected (almost completely) with Gamescope, although it is not perfect.
I needed to spend a lot of time reading the Archwiki and several Reddit posts, and basically, the problem was fixed: I needed to install the
vulkan-radeon
andlib32-vulkan-radeon
packages (which seems weird to me, because in theory my distro should install those packages for me when installing mesa), plus Gamescope.Then, I need to add all these settings to Borderlands 2 on Steam:
gamescope -f -W 1920 -H 1080 -r 60 --force-grab-cursor --adaptive-sync --expose-wayland -- %command% -nostartupmovies -nolauncher
Each one has a function, but
--force-grab-cursor
is strictly necessary in this game because otherwise the mouse will move erratically all of a sudden, and when I said that “It is almost completely corrected” is that when using that parameter the mouse is stuck in the center of the screen and you need to move from virtual desktop and return to the game, otherwise you will not be able to move the mouse, and if you do not add that parameter directly you will not be able to use the mouse at all.I hope this has been helpful for future people reading this!
Thank you for documenting this!