Add Agrarian performance profiling markers
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user