add tracing for performance profiling
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
#include "ShipSystem.h"
|
||||
#include "StationBodyComponent.h"
|
||||
#include "SurfaceMask.h"
|
||||
#include "tracing.h"
|
||||
#include "WaveSystem.h"
|
||||
#include "WeaponComponent.h"
|
||||
|
||||
@@ -198,6 +199,8 @@ void Simulation::tick()
|
||||
m_scrapSystem->tickDespawn(m_currentTick);
|
||||
|
||||
++m_currentTick;
|
||||
|
||||
PRINT_TRACES();
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
@@ -361,6 +364,7 @@ void Simulation::placeEnemyStationSet(int generation)
|
||||
|
||||
void Simulation::tickDeathsAndLoot()
|
||||
{
|
||||
TRACE();
|
||||
// --- Dead ships ---
|
||||
std::vector<entt::entity> deadShips;
|
||||
m_admin.forEach<ShipIdentityComponent, HealthComponent>(
|
||||
|
||||
Reference in New Issue
Block a user