mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-10-14 07:17:44 +00:00
Removed TickAll of entities, for performance
This was SVN commit r3095.
This commit is contained in:
@@ -143,9 +143,19 @@ void CEntityManager::updateAll( size_t timestep )
|
||||
m_reaper.clear();
|
||||
PROFILE_END( "reaper" );
|
||||
|
||||
// PT: TickAll (which sends the 'Tick' event to all entities) has been
|
||||
// disabled, because:
|
||||
// * it's very slow (particularly when there are thousands of entities, e.g. trees);
|
||||
// * no entity currently responds to tick events;
|
||||
// * nobody can think of a situation where ticks would be required in the future;
|
||||
// * if they ever are needed, they can be done more efficiently (e.g. by
|
||||
// adding a per-entity 'wants tick' flag);
|
||||
// * it's very slow.
|
||||
/*
|
||||
PROFILE_START( "tick all" );
|
||||
TickAll();
|
||||
PROFILE_END( "tick all" );
|
||||
*/
|
||||
|
||||
|
||||
PROFILE_START( "update all" );
|
||||
|
||||
Reference in New Issue
Block a user