Added VPROF for trigger prediction

This commit is contained in:
Kamay Xutax 2024-08-31 06:36:59 +02:00
parent 11d345802e
commit 1a173a2073
2 changed files with 6 additions and 1 deletions

View file

@ -1312,6 +1312,8 @@ void CPrediction::RunSimulation( int current_command, float curtime, CUserCmd *c
// TODO_ENHANCED: we should get rid of this to prefer SaveData/RestoreData.
void CPrediction::RestorePredictedTouched( int current_command )
{
VPROF( "CPrediction::RestorePredictedTouched" );
if (m_nCommandsPredicted == 0)
{
return;
@ -1361,6 +1363,8 @@ void CPrediction::RestorePredictedTouched( int current_command )
void CPrediction::StorePredictedTouched( int current_command )
{
VPROF( "CPrediction::StorePredictedTouched" );
int pc = predictables->GetPredictableCount();
int p;

View file

@ -359,6 +359,8 @@ void CLagCompensationManager::StartLagCompensation( CBasePlayer* player, CUserCm
void CLagCompensationManager::BacktrackPlayer( CBasePlayer* pPlayer, CUserCmd* cmd )
{
VPROF_BUDGET( "BacktrackPlayer", "CLagCompensationManager" );
Vector org;
Vector minsPreScaled;
Vector maxsPreScaled;
@ -367,7 +369,6 @@ void CLagCompensationManager::BacktrackPlayer( CBasePlayer* pPlayer, CUserCmd* c
LagRecord* recordSim;
LagRecord* recordAnim;
VPROF_BUDGET( "BacktrackPlayer", "CLagCompensationManager" );
int pl_index = pPlayer->entindex();
float flTargetLerpSimTime = cmd->simulationdata[pl_index].lerp_time;