csgo-osx-linux icon indicating copy to clipboard operation
csgo-osx-linux copied to clipboard

Buy menu focustrap / buy menu performance.

Open justpie opened this issue 1 year ago • 3 comments

Your system information

  • System information from steam (Steam -> Help -> System Information) in a gist:

if on Linux, please include Steam -> Help -> Steam Runtime Diagnostics in the gist. gist

  • Have you checked for system updates?: [Yes]

Please describe your issue in as much detail as possible:

When opening the buy menu the game loses the mouse focustrap. During the start of a round if I press my buy key, the menu opens and shows my mouse. This will allow me to move my mouse outside my game window and navigate to my secondary monitor. If I click anywhere outside the game menu, it minimizes the game to my desktop.

Edit:: This appears to happen anytime my mouse is visible in the game. Launch screen, Buy Menu, Right clicking on the in game scoreboard.

I also noticed that there is a significant drop in performance when my buy menu is open. Perhaps it may be related to the VLK issue in #3803?

justpie avatar Sep 07 '24 18:09 justpie

Using launch options SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS=0 %command% will prevent the game from minimizing. The only solution for mouse grab known to me is using gamescope, which adds more latency sadly.

bauernjunges avatar Sep 08 '24 11:09 bauernjunges

I tried adding "SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS", while the game doesn't minimize, it causes me to lose sound randomly. I'm thinking when I lose sound, my system somehow thinks that my game is minimized due to the command above.

justpie avatar Sep 20 '24 22:09 justpie

I'm using steam flatpak on KDE with wayland and pipewire and i never experienced that kind of phenomena.

This game mutes on focus loss ofc. As for why you lose focus, only you can tell us.

bauernjunges avatar Sep 21 '24 11:09 bauernjunges

Adding the following as a launch command has helped menu performance. However, it still seems studder occasionally when hovering over different buy options.

-novid -high -nojoy +fps_max 0 +cl_cmdrate 128 +cl_forcepreload 1

justpie avatar Oct 23 '24 13:10 justpie