Skip to content

Commit 78cfc83

Browse files
committed
perf: backport IdealPitch optimization from CSGO
removes ideal pitch, could not see any relevant code path being hit this is relevant because it causes a setup bones in spatial query from the trace during prediction, which similarly to in the water contents optimization, would cause a lot of setup bones
1 parent 5afb28e commit 78cfc83

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/game/client/prediction.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1793,9 +1793,12 @@ void CPrediction::_Update( bool received_new_world_update, bool validframe,
17931793
// This allows us to sample the world when it may not be ready to be sampled
17941794
Assert( C_BaseEntity::IsAbsQueriesValid() );
17951795

1796+
// UNDONE: Where is this ever used?
1797+
#if 0
17961798
// FIXME: What about hierarchy here?!?
17971799
SetIdealPitch( localPlayer, localPlayer->GetLocalOrigin(), localPlayer->GetLocalAngles(), localPlayer->m_vecViewOffset );
17981800
#endif
1801+
#endif
17991802
}
18001803

18011804

0 commit comments

Comments
 (0)