avoid setting cvars by name each frame
This commit is contained in:
parent
9b1a3387cb
commit
6f9b34ef75
5 changed files with 22 additions and 13 deletions
|
@ -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( );
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue