2022-08-29 01:14:53 +02:00
|
|
|
//=============================================================================//
|
|
|
|
//
|
|
|
|
// Purpose:
|
|
|
|
//
|
|
|
|
//=============================================================================//
|
|
|
|
|
|
|
|
#include "core/stdafx.h"
|
2022-08-29 02:21:32 +02:00
|
|
|
#include "tier1/cvar.h"
|
2022-08-29 01:14:53 +02:00
|
|
|
#include "engine/sdk_dll.h"
|
2022-08-29 02:21:32 +02:00
|
|
|
#ifndef DEDICATED
|
|
|
|
#include "gameui/IBrowser.h"
|
|
|
|
#include "gameui/IConsole.h"
|
|
|
|
#endif // !DEDICATED
|
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// Purpose:
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
void CEngineSDK::FixedFrame()
|
|
|
|
{
|
|
|
|
for (;;)
|
|
|
|
{
|
|
|
|
#ifndef DEDICATED
|
|
|
|
g_pBrowser->Think();
|
|
|
|
g_pConsole->Think();
|
|
|
|
#endif // !DEDICATED
|
2022-08-31 02:15:54 +02:00
|
|
|
std::this_thread::sleep_for(IntervalToDuration(sdk_fixedframe_tickinterval->GetFloat()));
|
2022-08-29 02:21:32 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
CEngineSDK* g_EngineSDK = new CEngineSDK();
|