Update mouse calls at the end of the frame
This commit is contained in:
parent
ec767ce99a
commit
a2e8d9e9d4
1 changed files with 12 additions and 16 deletions
|
@ -3139,7 +3139,7 @@ void _Host_RunFrame (float time)
|
||||||
|
|
||||||
g_pMDLCache->MarkFrame();
|
g_pMDLCache->MarkFrame();
|
||||||
}
|
}
|
||||||
|
#ifndef SWDS
|
||||||
const auto CalcInterpolationAmount = [&]()
|
const auto CalcInterpolationAmount = [&]()
|
||||||
{
|
{
|
||||||
// TODO_ENHANCED:
|
// TODO_ENHANCED:
|
||||||
|
@ -3200,7 +3200,7 @@ void _Host_RunFrame (float time)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
// Profile scope, protect from setjmp() problems
|
// Profile scope, protect from setjmp() problems
|
||||||
VPROF( "_Host_RunFrame" );
|
VPROF( "_Host_RunFrame" );
|
||||||
|
@ -3394,13 +3394,6 @@ void _Host_RunFrame (float time)
|
||||||
CL_RunPrediction( PREDICTION_NORMAL );
|
CL_RunPrediction( PREDICTION_NORMAL );
|
||||||
|
|
||||||
CL_ApplyAddAngle();
|
CL_ApplyAddAngle();
|
||||||
|
|
||||||
// The mouse is always simulated for the current frame's time
|
|
||||||
// This makes updates smooth in every case
|
|
||||||
// continuous controllers affecting the view are also simulated this way
|
|
||||||
// but they have a cap applied by IN_SetSampleTime() so they are not also
|
|
||||||
// simulated during input gathering
|
|
||||||
CL_ExtraMouseUpdate( g_ClientGlobalVariables.frametime );
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#if defined( REPLAY_ENABLED )
|
#if defined( REPLAY_ENABLED )
|
||||||
|
@ -3516,13 +3509,6 @@ void _Host_RunFrame (float time)
|
||||||
|
|
||||||
Host_SetClientInSimulation( false );
|
Host_SetClientInSimulation( false );
|
||||||
|
|
||||||
// The mouse is always simulated for the current frame's time
|
|
||||||
// This makes updates smooth in every case
|
|
||||||
// continuous controllers affecting the view are also simulated this way
|
|
||||||
// but they have a cap applied by IN_SetSampleTime() so they are not also
|
|
||||||
// simulated during input gathering
|
|
||||||
CL_ExtraMouseUpdate( g_ClientGlobalVariables.frametime );
|
|
||||||
|
|
||||||
g_ClientGlobalVariables.tickcount = saveTick;
|
g_ClientGlobalVariables.tickcount = saveTick;
|
||||||
numticks_last_frame = numticks;
|
numticks_last_frame = numticks;
|
||||||
host_remainder_last_frame = host_remainder;
|
host_remainder_last_frame = host_remainder;
|
||||||
|
@ -3657,6 +3643,16 @@ void _Host_RunFrame (float time)
|
||||||
} // Profile scope, protect from setjmp() problems
|
} // Profile scope, protect from setjmp() problems
|
||||||
|
|
||||||
Host_ShowIPCCallCount();
|
Host_ShowIPCCallCount();
|
||||||
|
#ifndef SWDS
|
||||||
|
// TODO_ENHANCED:
|
||||||
|
// Update the mouse as last so we can get the right prediction viewangles on a frame
|
||||||
|
// The mouse is always simulated for the current frame's time
|
||||||
|
// This makes updates smooth in every case
|
||||||
|
// continuous controllers affecting the view are also simulated this way
|
||||||
|
// but they have a cap applied by IN_SetSampleTime() so they are not also
|
||||||
|
// simulated during input gathering
|
||||||
|
CL_ExtraMouseUpdate( g_ClientGlobalVariables.frametime );
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
==============================
|
==============================
|
||||||
|
|
Loading…
Reference in a new issue