Navigation
API > API/Runtime > API/Runtime/Engine
| Name | FInGameCycleHistory |
| Type | struct |
| Header File | /Engine/Source/Runtime/Engine/Public/InGamePerformanceTracker.h |
| Include Path | #include "InGamePerformanceTracker.h" |
Syntax
struct FInGameCycleHistory
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| InGamePerformanceTracker.h | |||
FInGameCycleHistory
(
int32 InNumSamples |
InGamePerformanceTracker.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| CachedAverageCycles | TAtomic< uint64 > | Current average cycles for access by others, possibly on other threads. | InGamePerformanceTracker.h | |
| CurrFrameCycles | TAtomic< uint64 > | Current number of cycles for this frame. | InGamePerformanceTracker.h | |
| FrameCycles | TArray< uint64 > | Cycles for each frame in history. | InGamePerformanceTracker.h | |
| FrameIdx | int32 | Index of next frame in history to replace. | InGamePerformanceTracker.h | |
| TotalCycles | uint64 | Cached running total for an overall average. | InGamePerformanceTracker.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddCycles
(
uint64 NewCycles |
Adds a number of cycles for the current frame. Thread safe. | InGamePerformanceTracker.h | |
uint64 GetAverageCycles() |
InGamePerformanceTracker.h | ||
void NextFrame() |
Places the current data on the history and advances to the next frame index. Not thread safe. | InGamePerformanceTracker.h | |
void Reset() |
InGamePerformanceTracker.h |