Common: add cvar 'gpu_driven_tex_stream'

Also compiled out stream_overlay and stream_overlay_mode for dedicated server builds; texture streaming is a client only feature.
This commit is contained in:
Kawe Mazidjatari 2025-01-03 15:13:27 +01:00
parent 8720dde3cb
commit f0511a89a7
2 changed files with 6 additions and 1 deletions

View File

@ -57,6 +57,7 @@ ConVar* r_visualizetraces_duration = nullptr;
ConVar* stream_overlay = nullptr;
ConVar* stream_overlay_mode = nullptr;
ConVar* gpu_driven_tex_stream = nullptr;
ConVar* eula_version = nullptr;
ConVar* eula_version_accepted = nullptr;
@ -186,8 +187,11 @@ void ConVar_InitShipped(void)
#endif // !DEDICATED
staticProp_no_fade_scalar = g_pCVar->FindVar("staticProp_no_fade_scalar");
staticProp_gather_size_weight = g_pCVar->FindVar("staticProp_gather_size_weight");
#ifndef DEDICATED
stream_overlay = g_pCVar->FindVar("stream_overlay");
stream_overlay_mode = g_pCVar->FindVar("stream_overlay_mode");
gpu_driven_tex_stream = g_pCVar->FindVar("gpu_driven_tex_stream");
#endif // !DEDICATED
sv_cheats = g_pCVar->FindVar("sv_cheats");
sv_visualizetraces = g_pCVar->FindVar("sv_visualizetraces");
sv_visualizetraces_duration = g_pCVar->FindVar("sv_visualizetraces_duration");

View File

@ -39,10 +39,11 @@ extern ConVar* mp_gamemode;
#ifndef DEDICATED
extern ConVar* r_visualizetraces;
extern ConVar* r_visualizetraces_duration;
#endif // !DEDICATED
extern ConVar* stream_overlay;
extern ConVar* stream_overlay_mode;
extern ConVar* gpu_driven_tex_stream;
#endif // !DEDICATED
//-------------------------------------------------------------------------
// SHARED |
extern ConVar* eula_version;