FOpenGLGPUProfiler

Inheritance Hierarchy

FGPUProfiler

FOpenGLGPUProfiler

Syntax

struct FOpenGLGPUProfiler : public FGPUProfiler

Remarks

Encapsulates GPU profiling logic and data. There's only one global instance of this struct so it should only contain global data, nothing specific to a frame.

Variables

Name Description

Public variable

bool

 

bIntialized

Public variable

int

 

CurrentGPUFrameQueryIndex

Public variable

FOpenGLDisjoint ...

 

DisjointGPUFrameTimeQuery

Public variable

uint32

 

ExternalGPUTime

Public variable

FOpenGLBuffered ...

 

FrameTiming

Used to measure GPU time per frame.

Public variable

TIndirectArray <...

 

GPUHitchEventNodeFrames

GPU hitch profile histories

Public variable

int32

 

NestedFrameCount

Count the number of beginframe calls without matching endframe calls.

Public variable

FOpenGLDynamicR ...

 

OpenGLRHI

Constructors

Name Description

Public function

FOpenGLGPUProfiler

(
    FOpenGLDynamicRHI * InOpenGLRHI
)

Functions

Name Description

Public function

void

 

BeginFrame

(
    FOpenGLDynamicRHI * InRHI
)

Public function

void

 

Cleanup()

Public function

void

 

EndFrame()

Public function

void

 

InitResources()

Overridden from FGPUProfiler

Name Description

Public function Virtual

FGPUProfiler ...

 

CreateEventNode

(
    const TCHAR * InName,
    FGPUProfilerEventNode * InParen...
)

Public function Virtual

void

 

PopEvent()

Public function Virtual

void

 

PushEvent

(
    const TCHAR * Name,
    FColor Color
)

Constants

Name

Description

MAX_GPUFRAMEQUERIES

Measuring GPU frame time with a disjoint query.

References

Module

OpenGLDrv

Header

Runtime/OpenGLDrv/Public/OpenGLDrv.h