ValveSoftware / Source-1-Games

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

[TF2] [Linux] Question about gl_* ConVars #5755

Open Tiagoquix opened 2 months ago

Tiagoquix commented 2 months ago

Considering the new TF2 update that uses Vulkan as render instead of OpenGL, are all gl_* ConVars deprecated?

image

If so, I imagine they could be removed from the game.

JoriKos commented 2 months ago

There's still an option to play with OpenGL, so they're probably there for legacy reasons.

ChampionCynthia commented 2 months ago

gl_clear and gl_clear_randomcolor are part of the engine and work on all platforms.

The others are OpenGL-specific and still exist since, as JoriKos mentioned, it is still possible to run the game in OpenGL mode.

Tiagoquix commented 2 months ago

Yes, I understand that the game can still be run with the legacy OpenGL version, but these commands, apparently, could be removed from the Vulkan version of the game (except gl_clear and gl_clear_randomcolor, I think).

Various others commands were removed from the Vulkan version. Here are some of them: https://github.com/mastercomfig/mastercomfig/commit/6df1625cf99cb264bd0ea0598bcc19ffbd003b88#diff-ec8350dbafd5f05e2e869a0d285316d12033896717bb7c40d65664968cdfa39d

ChampionCynthia commented 2 months ago

Yes, I understand that the game can still be run with the legacy OpenGL version, but these commands, apparently, could be removed from the Vulkan version of the game (except gl_clear and gl_clear_randomcolor, I think).

Various others commands were removed from the Vulkan version. Here are some of them: mastercomfig/mastercomfig@6df1625#diff-ec8350dbafd5f05e2e869a0d285316d12033896717bb7c40d65664968cdfa39d

This is mastercomfig, which has nothing to do with TF2 itself. mastercomfig has been removing OpenGL-based optimizations for some reason. I'm not sure why since people needing a config to run the game properly may have GPUs that don't support Vulkan 1.3 and thus have to run the game without OpenGL but that's something on their side, not Valve's.

Tiagoquix commented 2 months ago

What I mean by citing mastercomfig is that those gl cvars were present before the Vulkan update, and they have been removed since then, so that's why I believe the rest of the gl cvars and commands can be removed as well.

Tiagoquix commented 2 months ago

Here's a TF2 cvar list with a bunch of gl_ cvars, and many of them do not exist anymore in the Vulkan version: https://docs.mastercomfig.com/latest/tf2/cvarlist_linux/