Add Agrarian performance profiling markers

This commit is contained in:
2026-05-16 11:01:46 -07:00
parent e50745dbdd
commit 82463f3b99
11 changed files with 196 additions and 1 deletions
@@ -2,11 +2,13 @@
#include "AgrarianSurvivalComponent.h"
#include "AgrarianGameState.h"
#include "AgrarianPerformanceStats.h"
#include "AgrarianShelterActor.h"
#include "AgrarianWeatherExposureZone.h"
#include "Components/BoxComponent.h"
#include "Engine/World.h"
#include "Net/UnrealNetwork.h"
#include "ProfilingDebugging/CpuProfilerTrace.h"
UAgrarianSurvivalComponent::UAgrarianSurvivalComponent()
{
@@ -24,6 +26,9 @@ void UAgrarianSurvivalComponent::BeginPlay()
void UAgrarianSurvivalComponent::TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction)
{
SCOPE_CYCLE_COUNTER(STAT_AgrarianSurvivalTick);
TRACE_CPUPROFILER_EVENT_SCOPE(AgrarianSurvivalTick);
Super::TickComponent(DeltaTime, TickType, ThisTickFunction);
if (!GetOwner() || !GetOwner()->HasAuthority() || !IsAlive())