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