mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-29 05:29:19 +00:00
engine: upgrade benchmark
This commit is contained in:
@@ -72,6 +72,7 @@
|
||||
#include "cl_rcon.h"
|
||||
#include "host_state.h"
|
||||
#include "voice.h"
|
||||
#include "cbenchmark.h"
|
||||
|
||||
// memdbgon must be the last include file in a .cpp file!!!
|
||||
#include "tier0/memdbgon.h"
|
||||
@@ -2845,6 +2846,9 @@ void SV_Think( bool bIsSimulating )
|
||||
bIsSimulating = bIsSimulating && ( sv.IsMultiplayer() || cl.IsActive() );
|
||||
|
||||
g_pServerPluginHandler->GameFrame( bIsSimulating );
|
||||
|
||||
if( bIsSimulating )
|
||||
GetBenchResultsMgr()->Frame();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
@@ -2920,6 +2924,7 @@ void SV_Frame( bool finalTick )
|
||||
// unlock sting tables to allow changes, helps to find unwanted changes (bebug build only)
|
||||
networkStringTableContainerServer->Lock( false );
|
||||
|
||||
|
||||
// Run any commands from client and play client Think functions if it is time.
|
||||
sv.RunFrame(); // read network input etc
|
||||
|
||||
|
||||
Reference in New Issue
Block a user