FGPUTiming

Holds information if this platform's GPU allows timing

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

RHI

Header

/Engine/Source/Runtime/RHI/Public/GPUProfiler.h

Include

#include "GPUProfiler.h"

Syntax

struct FGPUTiming

Remarks

Holds information if this platform's GPU allows timing

Functions

Name Description

Public function Static

FGPUTimingCa...

 

GetCalibrationTimestamp

(
    uint32 GPUIndex
)

Returns a pair of timestamps performed on GPU and CPU at nearly the same time, in microseconds.

Public function Static

uint64

 

GetTimingFrequency

(
    uint32 GPUIndex
)

Returns the frequency for the timing values, in number of ticks per seconds.

Public function Static

bool

 

IsSupported()

Whether GPU timing measurements are supported by the driver.

Protected function Static

void

 

SetCalibrationTimestamp

(
    FGPUTimingCalibrationTimestamp Cali...,
    uint32 GPUIndex
)

Protected function Static

void

 

SetTimingFrequency

(
    uint64 TimingFrequency,
    uint32 GPUIndex
)

Public function Static

void

 

StaticInitialize

(
    void* UserData,
    PlatformStaticInitialize* Plat...
)

Typedefs

Name

Description

PlatformStaticInitialize

Constants

Name

Description

GAreGlobalsInitialized

Whether the static variables have been initialized.

GCalibrationTimestamp

Two timestamps performed on GPU and CPU at nearly the same time.

GIsSupported

Whether GPU timing measurements are supported by the driver.

GTimingFrequency

Frequency for the timing values, in number of ticks per seconds, or 0 if the feature isn't supported.