ValveSoftware / Source-1-Games

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

[HL2] New Beta Low Framerate With Workaround on Vulkan #3688

Open lflo5727 opened 2 years ago

lflo5727 commented 2 years ago

Running the new beta for Half-Life 2 and its episodes on Linux with the -vulkan launch property sees very low framerates unless you switch focus. If you Alt+Tab out and back in, the framerate is fixed and runs just fine. Everytime you start the game you need to tab out and back in to make it run smoothly.

Able to reproduce on Manjaro with KDE, seen other Linux users with the same issue.

Yetoo1 commented 2 years ago

I'm not experiencing this issue.

Version: Build Label: 6839856 # Uniquely identifies each build Network PatchVersion: 6839856 # Determines client and server compatibility Protocol version: 24 # High level network protocol version

System info: https://gist.github.com/Yetoo1/9d890442eadbcf8c1e3c90a924994edc

Yetoo1 commented 2 years ago

Actually, I am experiencing a similar issue. While I don't have this issue on start up I do when I enable wait for vertical sync and change the antialiasing mode or other relevant option (see #3689). The framerate seems to be changing to the refresh rate like it's supposed to be doing. The refresh rate shouldn't be changing. Note, I encountered a bug where changing vsync doesn't do anything in the same session if antialiasing mode has been changed from none. Changing back antialiasing to none after changing the value to a higher value in the same session doesn't seem to work. Although, I can't seem to be able to get back to a state where I can change the vsync value again. Changing the vsync value and then restarting the game is a workaround.