always disabling the FPS limiter after drop errors

This commit is contained in:
myT 2019-11-12 04:19:31 +01:00
parent c024cdcdc9
commit 2dcddc87eb
3 changed files with 15 additions and 0 deletions

View file

@ -674,6 +674,12 @@ static void CL_SetMaxFPS( int maxFPS )
} }
void CL_DisableFramerateLimiter()
{
CL_SetMaxFPS( 0 );
}
void CL_InitCGame() void CL_InitCGame()
{ {
int t = Sys_Milliseconds(); int t = Sys_Milliseconds();

View file

@ -282,6 +282,10 @@ void QDECL Com_ErrorExt( int code, int module, qbool realError, const char *fmt,
Cvar_Set("com_errorMessage", com_errorMessage); Cvar_Set("com_errorMessage", com_errorMessage);
} }
#ifndef DEDICATED
CL_DisableFramerateLimiter();
#endif
if ( code == ERR_SERVERDISCONNECT ) { if ( code == ERR_SERVERDISCONNECT ) {
#ifndef DEDICATED #ifndef DEDICATED
CL_Disconnect( qtrue ); CL_Disconnect( qtrue );

View file

@ -1019,6 +1019,11 @@ qbool CL_DemoPlaying();
void CL_NextDemo(); void CL_NextDemo();
// invoke the "nextdemo" cvar as a command, if not empty // invoke the "nextdemo" cvar as a command, if not empty
void CL_DisableFramerateLimiter();
// map loads might be interrupted by a drop-style error,
// which would leave the FPS limit enabled until the next successful map load
// this should therefore always be called by Com_Error
void Key_KeyNameCompletion( void (*callback)(const char *s) ); void Key_KeyNameCompletion( void (*callback)(const char *s) );
// for /bind and /unbind auto-completion // for /bind and /unbind auto-completion