mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-17 18:40:02 +00:00
engine: host: only sleep once between frames
This commit is contained in:
parent
ef74f86ce2
commit
f469b56b93
@ -675,11 +675,19 @@ Host_Frame
|
||||
*/
|
||||
void Host_Frame( float time )
|
||||
{
|
||||
Host_CheckSleep();
|
||||
static qboolean slept = false;
|
||||
|
||||
// decide the simulation time
|
||||
if( !Host_FilterTime( time ))
|
||||
{
|
||||
if( !slept )
|
||||
{
|
||||
Host_CheckSleep();
|
||||
slept = true;
|
||||
}
|
||||
return;
|
||||
}
|
||||
slept = false;
|
||||
|
||||
Host_InputFrame (); // input frame
|
||||
Host_ClientBegin (); // begin client
|
||||
|
Loading…
x
Reference in New Issue
Block a user