MaterialSystem: remove the need for a dummy STBSP file

As of commit 5e0c24ad8437a02c1c62325d1d0e5f39e6684f90, the dummy file is no longer necessary.
This commit is contained in:
Kawe Mazidjatari 2025-01-04 17:40:43 +01:00
parent bd9beaa33a
commit 3b44bbc6bc

View File

@ -114,22 +114,13 @@ static void StreamDB_Init(const char* const pszLevelName)
v_StreamDB_Init(targetStreamDB); v_StreamDB_Init(targetStreamDB);
// If the requested STBSP file doesn't exist, load the dummy file to enable // If the requested STBSP file doesn't exist, then enable the GPU driven
// GPU driven texture streaming. // texture streaming system.
if (s_streamDataBase->fileHandle == FS_ASYNC_FILE_INVALID) const bool gpuDriven = s_streamDataBase->fileHandle == FS_ASYNC_FILE_INVALID;
{ gpu_driven_tex_stream->SetValue(gpuDriven);
targetStreamDB = STBSP_GPU_DRIVEN_FILE;
v_StreamDB_Init(targetStreamDB);
gpu_driven_tex_stream->SetValue(true); if (!gpuDriven)
}
else
gpu_driven_tex_stream->SetValue(false);
if (s_streamDataBase->fileHandle != FS_ASYNC_FILE_INVALID)
Msg(eDLL_T::MS, "StreamDB_Init: Loaded STBSP file '%s.stbsp'\n", targetStreamDB); Msg(eDLL_T::MS, "StreamDB_Init: Loaded STBSP file '%s.stbsp'\n", targetStreamDB);
else
Error(eDLL_T::MS, 0, "StreamDB_Init: STBSP file '%s.stbsp' not found; texture streaming unavailable\n", pszLevelName, STBSP_GPU_DRIVEN_FILE);
} }
static ConVar stream_overlay_memory("stream_overlay_memory", "524288", FCVAR_DEVELOPMENTONLY, "Total string memory to allocate for the texture streaming debug overlay."); static ConVar stream_overlay_memory("stream_overlay_memory", "524288", FCVAR_DEVELOPMENTONLY, "Total string memory to allocate for the texture streaming debug overlay.");