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
@@ -3,9 +3,11 @@
#include "AgrarianWeatherAudioController.h"
#include "AgrarianGameState.h"
#include "AgrarianPerformanceStats.h"
#include "Components/AudioComponent.h"
#include "Components/SceneComponent.h"
#include "Engine/World.h"
#include "ProfilingDebugging/CpuProfilerTrace.h"
AAgrarianWeatherAudioController::AAgrarianWeatherAudioController()
{
@@ -47,6 +49,9 @@ void AAgrarianWeatherAudioController::Tick(float DeltaSeconds)
void AAgrarianWeatherAudioController::RefreshWeatherAudio(float DeltaSeconds)
{
SCOPE_CYCLE_COUNTER(STAT_AgrarianWeatherAudioRefresh);
TRACE_CPUPROFILER_EVENT_SCOPE(AgrarianWeatherAudioRefresh);
const UWorld* World = GetWorld();
const AAgrarianGameState* GameState = World ? World->GetGameState<AAgrarianGameState>() : nullptr;
if (!GameState)