add tracing for performance profiling

This commit is contained in:
2026-06-05 16:38:36 +02:00
parent 17e9913c98
commit abc261c03a
13 changed files with 474 additions and 0 deletions

View File

@@ -20,6 +20,7 @@
#include "SensorRangeComponent.h"
#include "Tick.h"
#include "ThreatResponseBehaviorComponent.h"
#include "tracing.h"
#include "WeaponComponent.h"
ShipSystem::ShipSystem(const GameConfig& config, EntityAdmin& admin)
@@ -334,6 +335,7 @@ void ShipSystem::despawn(entt::entity entity)
void ShipSystem::clearMovementIntents()
{
TRACE();
m_admin.forEach<MovementIntentComponent>(
[](entt::entity /*e*/, MovementIntentComponent& i)
{
@@ -348,6 +350,7 @@ void ShipSystem::setRallyPoint(QVector2D point)
void ShipSystem::triggerRallyDeparture()
{
TRACE();
std::vector<entt::entity> toRemove;
m_admin.forEach<RallyBehaviorComponent, FactionComponent>(
[&toRemove](entt::entity e, const RallyBehaviorComponent& /*rb*/,