FOpenGLGPUProfiler

Encapsulates GPU profiling logic and data.

Windows
MacOS
Linux

Inheritance Hierarchy

FGPUProfiler

FOpenGLGPUProfiler

References

Module

OpenGLDrv

Header

/Engine/Source/Runtime/OpenGLDrv/Public/OpenGLDrv.h

Include

#include "OpenGLDrv.h"

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.

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback