Navigation
API > API/Runtime > API/Runtime/RHI
Type used to pipe GPU frame timings from the end-of-pipe / RHI threads up to the game / render threads. Stores a history of GPU frame timings, which can be retrieved by engine code via: static FRHIGPUFrameTimeHistory::FState GPUFrameTimeState; uint64 GPUFrameTimeCycles64; while (GPUFrameTimeState.PopFrameCycles(GPUFrameTimeCycles64) != FRHIGPUFrameTimeHistory::EResult::Empty) { ... }
| Name | FRHIGPUFrameTimeHistory |
| Type | class |
| Header File | /Engine/Source/Runtime/RHI/Public/GPUProfiler.h |
| Include Path | #include "GPUProfiler.h" |
Syntax
class FRHIGPUFrameTimeHistory
Classes
| Name | Remarks |
|---|---|
| FState |
Enums
Public
| Name | Remarks |
|---|---|
| EResult |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| MaxLength | uint32 | Total number of GPU frame timings to store. | GPUProfiler.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| CS | FCriticalSection | GPUProfiler.h | ||
| History | TStaticArray< uint64, MaxLength > | GPUProfiler.h | ||
| NextIndex | uint64 | GPUProfiler.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void PushFrameCycles
(
double GPUFrequency, |
Called by platform RHIs to submit new GPU timing data. | GPUProfiler.h |