avoid setting cvars by name each frame
This commit is contained in:
1 parent
9b1a3387cb
commit
6f9b34ef75
5 files changed
+22
-13
No files matched your search
@@ -561,13 +561,6 @@ int main( int argc, char **argv )
|
||||
|
||||
while( 1 )
|
||||
{
|
||||
#ifndef DEDICATED
|
||||
int appState = SDL_GetAppState( );
|
||||
|
||||
Cvar_SetValue( "com_unfocused", !( appState & SDL_APPINPUTFOCUS ) );
|
||||
Cvar_SetValue( "com_minimized", !( appState & SDL_APPACTIVE ) );
|
||||
#endif
|
||||
|
||||
IN_Frame( );
|
||||
Com_Frame( );
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user