Skip to content

Commit 9ebe423

Browse files
committed
Only assert once for the legacy shadowleafs alloc warning
1 parent 348caf3 commit 9ebe423

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/game/client/clientleafsystem.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1020,7 +1020,12 @@ void CClientLeafSystem::AddShadowToLeaf( int leaf, ClientLeafShadowHandle_t shad
10201020
info.m_EnumCount = m_ShadowEnum;
10211021
}
10221022

1023+
#ifdef NEO
1024+
// don't nuke dev build perf by spamming the assert every frame
1025+
AssertOnce(m_ShadowsInLeaf.NumAllocated() < 2000);
1026+
#else
10231027
Assert(m_ShadowsInLeaf.NumAllocated() < 2000);
1028+
#endif
10241029

10251030
i = m_RenderablesInLeaf.NextElement(i);
10261031
}

0 commit comments

Comments
 (0)