Unusual, underised Vsync action

Long story short:

I got a computer with a GT 1030.
I thinker with PCs because I like it, so I test out this one too.

Lately (it didn’t happen up to some weeks ago, max 2 months) I noticed that the FPS in some games (like Half Life 2) acted as if “under effect of a strange Double-Buffer Vsync”. Why “strange”? Because it happens above the screen’s Refresh Rate.

I got it plugged into a 4k tv.
When testing out Half Life 2 (and other Source-Engine-1 games) I noticed that the framerate jumped from 30 to 60 to 120 to 180 to 240 pretty cleanly and abruptly.
This is not normal behavior for these games.


I do not believe it’s the games’ or Steam’s doing, nor MangoHUD/GOverlay 's fault.
Before going to GitHUB to make an entry I want to check here why this is happening, since I strongly believe this to be a Fedora problem.

Be them fullscreen or bordlerless they act the same.
Now I can’t test other variables, but when I’ll have some more time I’ll see to upload the PC’s specs (as per praxis) and properly see if it’s just a fullscreen + borderless behavior, or if it’s also a windowed behavior.

For some things with OpenGL, I’ve had to use these environment variables to avoid some odd 40 FPS cap on Wayland (OGL → Vulkan with disabled vsync):

MESA_LOADER_DRIVER_OVERRIDE='zink' MESA_VK_WSI_PRESENT_MODE='immediate'

I haven’t had an issue with Vulkan apps, but MESA_VK_WSI_PRESENT_MODE='immediate' by itself would work with that.

vblank_mode=3 might also be useful.

F

HL2 uses DXVK. It has been using it for around a year or more if I’m not wrong.

If you’re sure about that, I’d try just MESA_VK_WSI_PRESENT_MODE.

Dota 2 Classic mentions the Source 1 version using OpenGL.

When I can, I will (on the GT 1030 PC).

Also I just did the bare minimum of googling (because I don’t like to cast spells which I don’t know)


and found out this page with this command:

MESA_VK_WSI_PRESENT_MODE=immediate %command%


I do not believe any game on my main PC suffers of this strange behavior (if anything there’s a completely different issue about dual-monitors which I won’t mention here) so I can’t test it, at least for now.

I didn’t respond sooner because I tried installing W10, so my Fedora exploded.

I don’t know what the first command really means, where I should put it, and really why it should help at all.
Not all games jump in framerate, so it’s not a system-wide problem.
I tried that Launch Command in Steam, and it didn’t work.

I’d rather have a proper introduction and explanation for these really serious things. I will never do irreversible changes to actual computers which me and others actually use, I learned that with the Nvidia Drivers thingy…