add tracing for performance profiling
This commit is contained in:
@@ -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*/,
|
||||
|
||||
Reference in New Issue
Block a user