ValveSoftware / Source-1-Games

Source 1 based games such as TF2 and Counter-Strike: Source
624 stars 73 forks source link

[TF2] Alt tabbing on linux causes severe graphical issues #6015

Open Hedwig7s opened 1 month ago

Hedwig7s commented 1 month ago

EDIT: It seems to happen whenever rendering refreshes, like when taking a screenshot (F5) for the first time after loading the game

In case it's relevant I am using Linux Mint 21.3 Cinnamon on X11

When alt-tabbing in the middle of a game, several graphical issues can occur including:

Now I know source games don't particularly like being alt-tabbed, but this feels more extreme than before Also the symptoms of this issue have been known for a while and can be temporarily fixed by starting and stopping a demo, but the issues I am experiencing right now feel more extreme than usual, likely due to being directly caused by alt tabbing now

Please look into this

Hedwig7s commented 1 month ago

I do want to note that it is not consistent (although if it does happen I usually see weirdness like taunts resetting after tabbing back) sometimes everything works fine other times it gets real funky

TheBoctor commented 1 month ago

What you described sounds identical to packet/netprop loss. Almost like the whole client is getting suspended when backgrounded. If you disable (0) the snd_mute_losefocus convar, can you still hear the game's sounds playing while it's inactive? If you launch TF2 with the old OpenGL (ToGL) renderer, does the issue still happen?

Hedwig7s commented 1 month ago

For the first question, yes For the second, I'm gonna need to do more testing

Hedwig7s commented 1 month ago

I have not been able to replicate this consistantly, although I definitely notice that visual bugs start to happen when taking a screenshot for the first time or when alt tabbing for a bit Easiest way to tell is to do a looping taunt and when the bug happens the taunt's models disappear, the sound breaks and the animation restarts

Tiagoquix commented 3 weeks ago

This may be due to the way your graphics vendor implements Vulkan rendering.

dandongus commented 1 week ago

Please check whether this issue still occurs when engine_no_focus_sleep is set to 0.

Hedwig7s commented 1 week ago

After further inspection it seems this happens mostly on skial. May be related to the sv_pure?