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

Shooting inconsistencies

Open tyqualters opened this issue 1 year ago • 51 comments

Your system information

  • System information from steam (Steam -> Help -> System Information) in a gist: https://gist.github.com/tyqualters/9bd5c9fb34bdf148d1c65acb22791316
  • Have you checked for system updates?: [Yes/No]

Clicks sometimes not registering in-game. Clicking to fire on enemy may or may not register; sometimes takes about 5 clicks before player actually shoots. Suspecting this has to do with input handling.

No issues with UI, no issues experienced from other games.

According to the replies, this issue is consistent among Arch and Ubuntu-based systems, as well as KDE + Gnome desktop environments, and has been consistent since the November 16 update.

Steps for reproducing this issue:

  1. Play CS:2 on official servers

tyqualters avatar Nov 18 '23 02:11 tyqualters

Coming from #3569 I just want to add that we both use Arch and X11 on a MSI/AMD plattform in case that's of relevance.

dataprolet avatar Nov 18 '23 15:11 dataprolet

My son (Sys info) is apparently plagued by the same issue, he did some digging and it also happens on local sessions (practice, ws maps). The mouse inputs continue to work again only after he presses a key on the keyboard. He has bound MOUSEWHEELDOWN to jump, which stops working as well. My system (Sys info) does work as expected without any noticeable mouse problems.

hp-pepster avatar Nov 19 '23 00:11 hp-pepster

same thing for me on arch+kde+x11+AMDGPU. it's like the mouse (cursor?) leaves the game "window" at random running both fullscreen windowed and regular fullscreen. pitch/yaw input always works but no buttons for several seconds at a time, functionality usually comes back after moving the mouse enough.

I'm pretty sure this only started after the 2023-11-16 update, but my system was also updated during this time. there also used to be an issue when alt-tabbing in and out where aim will snap to a random direction upon tabbing back in. doesn't seem to happen now.

also it looks like everyone having this issue is using KDE/kwin...

henrym11106 avatar Nov 19 '23 02:11 henrym11106

This started happening for me as well following the update on Nov 16, 2023. Prior to that, it was never an issue. I tried using a different mouse and the same issue occurs. Running on Kubuntu 22.04

System Information here

senecaso avatar Nov 19 '23 04:11 senecaso

Same issue for me on Arch Linux with KDE, X11 and Nvidia GTX970. I have also noticed that shooting only works sometimes when a key is pressed. SystemInfo: https://gist.github.com/liphiwolf/9bde91b920ba48f67a94b696cbd45f78

liphiwolf avatar Nov 19 '23 11:11 liphiwolf

My son (Sys info) is apparently plagued by the same issue, he did some digging and it also happens on local sessions (practice, ws maps). The mouse inputs continue to work again only after he presses a key on the keyboard. He has bound MOUSEWHEELDOWN to jump, which stops working as well. My system (Sys info) does work as expected without any noticeable mouse problems.

Correction: Happens on my system as well. We did some more testing. Normally we play in 4:3 stretched (1080x1000 or 1080x960). With 1080x1000, the bug seems to occurs more often.

I wonder how many users (all unix-users?) are affected by this bug and do not notice it.

hp-pepster avatar Nov 21 '23 17:11 hp-pepster

Manjaro Gnome X11 also clicks sometimes not registering in-game. Clicking to fire on enemy may or may not be registered.

pawelswiszcz avatar Nov 21 '23 23:11 pawelswiszcz

I have done some in-game tests and for me the issue comes from the "home-screen cursor" hovering above the taskbar while trying to shoot.

Steps to reproduce:

  • Tab out of cs2
  • position your cursor over your taskbar
  • tab back into cs2
  • try to shoot
  • profit??

liphiwolf avatar Nov 22 '23 21:11 liphiwolf

This has been happening on my system for the past week or so. Left clicks randomly don't get registered. Spamming or switching weapons doesn't help. Moving the mouse for a bit apparently does. Really frustrating...

Running Arch with KDE Plasma on X11 at 1920x1080, KWin compositing disabled while in-game. Using two screens, with the one on the right hand side being the primary one. Playing in fullscreen mode.

bastimeyer avatar Nov 24 '23 21:11 bastimeyer

@bastimeyer In response to your reply, I also run Arch + KDE on X11 but at 2560x1440. I was experiencing this issue, but following the guidance from @liphiwolf, whenever I moved out of game and back into game, I just made sure my cursor was positioned in the center of my screen away from the task bar and then ALT+TAB'd to the game.

I haven't experienced any issues of the sorts since following this.

tyqualters avatar Nov 24 '23 21:11 tyqualters

This problem happens in KDE Plasma when the panel is in any mode that's not "Always Visible".

semyon2105 avatar Nov 26 '23 21:11 semyon2105

This might have to do with some recent KDE Plasma update. I'm having similar problems with the panel capturing mouse clicks in Dota 2 as well. It wasn't like this a few weeks ago.

semyon2105 avatar Nov 26 '23 23:11 semyon2105

It started happening to me without any KDE or OS updates, but it immediately started happening following the mentioned cs2 update.

On Sun, Nov 26, 2023, 3:26 p.m. Semyon Ivanov @.***> wrote:

This might have to do with some recent KDE Plasma update. I'm having similar problems with the panel capturing mouse clicks in Dota 2 as well. It wasn't like this a few weeks ago.

— Reply to this email directly, view it on GitHub https://github.com/ValveSoftware/csgo-osx-linux/issues/3566#issuecomment-1826936501, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIOD2NG6CZ2QAJ3SSPPIMTYGPFZTAVCNFSM6AAAAAA7QUUKZSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRWHEZTMNJQGE . You are receiving this because you commented.Message ID: @.***>

senecaso avatar Nov 26 '23 23:11 senecaso

Hello @kisak-valve Maybe have any news about this? I've noticed that right button also sometimes is not registered. Problem is on Manajro Gnome 45 X11 GTX 1050 Ti. Disabled all panels and problem still exists (the top and bottom) The last update broke this behavior, because before that all was fine.

pawelswiszcz avatar Nov 29 '23 16:11 pawelswiszcz

It's probably a problem with the exclusive fullscreen not working and the cursor not being bind to the game window.

Steps to reproduce:

  1. Shoot
  2. Aim down
  3. At some point the cursor will leave the game's window
  4. Clicks will not be registered

dataprolet avatar Dec 01 '23 14:12 dataprolet

You might be right. The game starts without proper fullscreen. The top bar is visible. I've always changed this in settings for proper full screen and saved options. But yesterday I didn't do that and all click and shots was fine.

Replying to https://github.com/ValveSoftware/csgo-osx-linux/issues/3566#issuecomment-1836171877

pawelswiszcz avatar Dec 01 '23 14:12 pawelswiszcz

I was able to confirm the steps indicated by @dataprolet . I tried both in "windowed" and in "fullscreen", and the issue only appears to happen in "fullscreen" mode. If you just keep aiming down, until its at your feet, then lift the mouse and keep going down, eventually the cursor leaves the game window and all mouse clicks stop registering. So, the workaround until Valve is able to fix this is to scroll way up when this happens to get your cursor away from the bottom of the screen, but of course this doesn't help much when you're trying to clutch in comp and you cant fire or defuse.

I will try to reproduce this on Gnome as well, since most of the people here seem to be using KDE.

senecaso avatar Dec 03 '23 20:12 senecaso

I wasn't able to reproduce this using the exact same steps on an Ubuntu 22.04 (Gnome) system. However, that same system experienced the issue, but the conditions to trigger it seem to be different somehow. This Gnome system had its "task bar" mounted at the top of the screen, so the process was repeated by trying to scroll up, as well as left, but even then we were unable to reliably reproduce the issue.

senecaso avatar Dec 03 '23 21:12 senecaso

It seems that if you change from fullscreen to windowed and back while being in game the game correctly switches to exclusive fullscreen and the cursor can't leave the game.

dataprolet avatar Dec 20 '23 21:12 dataprolet

same behavior on my linux Mint

marcT21 avatar Dec 23 '23 09:12 marcT21

i was able to fix my issue on bspwm by making the fullscreen cs2 window float.

steps:

  1. Run your game on fullscreen mode with your preferred resolution and refresh rate.
  2. Press Esc to get your cursor, press your sxhkd key combination to toggle to floating mode in bspwm. Basically executing bspc node -t floating
  3. If you are using Polybar then move your CS2 window away from Polybar so they don't overlap with each other. If they overlap then the issue would still be there.

Edit: my game works fine if i pkill polybar

flying-pizza-69 avatar Jan 22 '24 09:01 flying-pizza-69

@dataprolet is right. If you change the video settings while in a game (ie: not in the lobby or main menu), it seems to address most of this issue. It doesn't fix it entirely, but it is significantly better, and nearly all clicks are registering for me now. Sadly, the workaround doesn't persist between restarts (it does between maps), so you have to do it again each time you restart the game.

  1. start the game
  2. leave the video settings as they are when the game starts (likely in windowed mode)
  3. join a game, casual is fine
  4. once the game starts, go to the video setting and change mode from "fullscreen" to "windowed"
  5. click apply
  6. change mode from "windowed" to "fullscreen"
  7. click apply
  8. play game as usual

senecaso avatar Feb 12 '24 06:02 senecaso

Replying to https://github.com/ValveSoftware/csgo-osx-linux/issues/3566#issuecomment-1938106897

That approach is not a great fix because any ALT+TAB messes it right back up. Setting the window as "Always on Top" (right click on CS2 in task bar, more > keep above others) in Full Screen mode seems to be a good enough fix for me as it only needs to be applied once per session and doesn't get messed up with ALT+TABs or other common behaviors.

tyqualters avatar Feb 12 '24 06:02 tyqualters

Good to know, I'll give that a try as well. I don't typically alt-tab out, so I haven't noticed that side-effect yet. If your approach works, then that's easier until it can be properly fixed.

senecaso avatar Feb 12 '24 06:02 senecaso

This might be related to the package manager. When conducting an experiment between the DEB, Flatpak and Snap versions, I also noticed this same issue with the Flatpak one (At least more of it) compared to the snap which had none, but I will leave the video here to explain better https://www.youtube.com/watch?v=2FBnTa33jSQ

It is more about stuttering and inconsistencies, but this was also felt during the recording, so I just happen to see someone also created an issue about it.

luisalvarado avatar Feb 13 '24 14:02 luisalvarado

The same thing is happening to me. I'm using Debian Bookworm (stable, steam.deb, and no packages from testing/sid/experimental), and since the introduction of Arms Race, most of the time, mouse1/2/3/4/5 doesn't work. The fastest way to trigger this on my machine is by pressing ctrl+alt+mouse1 or just ctrl+mouse1 (I use ctrl for crouch and alt for walk, and inverted y-axis, I know, really uncommon =D )

I suppose that the screen is not really going to fullscreen, and it doesn't matter if it's windowed or not.

turrini avatar Feb 17 '24 22:02 turrini

For me the problem has been happening with xfce4-panel but the problem only begun in early Feb 2024. I have a shell one-liner kill and restore it after cs2 closes as a workaround for the time being. It is set to 'always' hide.

ipaqmaster avatar Mar 06 '24 01:03 ipaqmaster

Still a problem on Plasma 6 + x11, and as with plasma 5, disabling auto-hide usually results in the taskbar staying on top of the game screen in addition to stealing mouse inputs. changing the game from fullscreen to windowed-fullscreen and back can help but alt-tab tends to break it again. no guarantee that the phantom taskbar won't steal inputs either way.

setting the game tab to "keep above others" breaks alt-tab and still allows for stolen inputs sometimes.

henrym11106 avatar Mar 10 '24 09:03 henrym11106

Same issue here. Fedora 39, latest Gnome, X11. I believe the issue isn't occurring on wayland

benlc avatar Mar 12 '24 23:03 benlc

Extremely lazy toggle command I have in my shell history for xfce4: ! pgrep cs2 && xfce4-panel || pkill xfce4-panel & exit

I had a command with /proc/cs2PidHere watch for automatically starting it back up with inotifywait. But it became a perfection side-project of its own far too quickly.

ipaqmaster avatar Mar 13 '24 02:03 ipaqmaster