Skip to content

Commit 7e20f3a

Browse files
committed
perf: backport animation ActivityList optimization
this saves a lot of comparison times syncing client and server back and forth in a listen server (about 2 to 4%)
1 parent 8a7f56a commit 7e20f3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/game/shared/animation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ void VerifySequenceIndex( CStudioHdr *pstudiohdr )
213213
return;
214214
}
215215

216-
if( pstudiohdr->GetActivityListVersion( ) != g_nActivityListVersion )
216+
if( pstudiohdr->GetActivityListVersion( ) < g_nActivityListVersion ) // sometimes the server's numbers can get ahead of the client's if we're sharing memory between the two, so it's only necessary to reindex if a model is lagging the version number.
217217
{
218218
// this model's sequences have not yet been indexed by activity
219219
IndexModelSequences( pstudiohdr );

0 commit comments

Comments
 (0)