Remove unneeded references to com_smp cvar

This commit is contained in:
Stephen Saunders 2023-06-20 22:04:11 -04:00
parent 5ff88fdfd0
commit 4110dc1f05
2 changed files with 1 additions and 9 deletions

View file

@ -301,7 +301,6 @@ idCommonLocal::TimeRenderDemo
*/
void idCommonLocal::TimeRenderDemo( const char* demoName, bool twice, bool quit )
{
extern idCVar com_smp;
idStr demo = demoName;
StartPlayingRenderDemo( demo );
@ -310,9 +309,6 @@ void idCommonLocal::TimeRenderDemo( const char* demoName, bool twice, bool quit
{
timeDemo = TD_YES; // SRS - Set timeDemo to TD_YES to disable time demo playback pause when window not in focus
bool smp_mode = com_smp.GetBool();
com_smp.SetBool( false ); // SRS - First pass of timedemo is effectively in com_smp == 0 mode, so set this for ImGui timings to be correct
while( readDemo )
{
BusyWait(); // SRS - BusyWait() calls UpdateScreen() which draws and renders out-of-sequence but still supports frame timing
@ -331,8 +327,6 @@ void idCommonLocal::TimeRenderDemo( const char* demoName, bool twice, bool quit
eventLoop->RunEventLoop( false ); // SRS - Run event loop (with no commands) to allow keyboard escape to cancel first pass of the timedemo
}
com_smp.SetBool( smp_mode ); // SRS - Restore original com_smp mode before second pass of timedemo which runs within normal rendering loop
StartPlayingRenderDemo( demo );
}
@ -559,4 +553,4 @@ Common_TimeDemoQuit_f
CONSOLE_COMMAND_SHIP( timeDemoQuit, "times a demo and quits", idCmdSystem::ArgCompletion_DemoName )
{
commonLocal.TimeRenderDemo( va( "demos/%s", args.Argv( 1 ) ), ( args.Argc() > 2 ), true ); // SRS - fixed missing "twice" argument
}
}

View file

@ -2165,8 +2165,6 @@ idRenderSystemLocal::Shutdown
*/
void idRenderSystemLocal::Shutdown()
{
extern idCVar com_smp;
common->Printf( "idRenderSystem::Shutdown()\n" );
fonts.DeleteContents();