HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RE_GPUTimer Class Reference

#include <RE_TimerQuery.h>

Public Member Functions

 RE_GPUTimer ()
 
void init (RE_Render *r)
 Initialize the queries (queries cannot be created if a query is running) More...
 
bool hasResult () const
 
bool isResultAvailable (RE_Render *r)
 Returns true if the query result is available from the GL server. More...
 
int64 getElapsedTimeNS (RE_Render *r)
 Fetch elapsed render time between begin/end in nanoseconds. More...
 
void reset ()
 Reset the queries without deleting them. More...
 
void destroy ()
 Deletes the queries. init() must be called again. More...
 
void begin (RE_Render *r)
 Mark the beginning and end of GPU commands to time Bracket the draw calls to measure with begin and end. Multiple begin/end calls without a reset() will accumulate time. More...
 
void end (RE_Render *r)
 Mark the beginning and end of GPU commands to time Bracket the draw calls to measure with begin and end. Multiple begin/end calls without a reset() will accumulate time. More...
 

Detailed Description

Regular begin/end Timer queries cannot be nested, so this class uses 2 timers to record the start and end timestamp instead.

Definition at line 52 of file RE_TimerQuery.h.

Constructor & Destructor Documentation

RE_GPUTimer::RE_GPUTimer ( )
inline

Definition at line 55 of file RE_TimerQuery.h.

Member Function Documentation

void RE_GPUTimer::begin ( RE_Render r)
inline

Mark the beginning and end of GPU commands to time Bracket the draw calls to measure with begin and end. Multiple begin/end calls without a reset() will accumulate time.

Definition at line 70 of file RE_TimerQuery.h.

void RE_GPUTimer::destroy ( )
inline

Deletes the queries. init() must be called again.

Definition at line 117 of file RE_TimerQuery.h.

void RE_GPUTimer::end ( RE_Render r)
inline

Mark the beginning and end of GPU commands to time Bracket the draw calls to measure with begin and end. Multiple begin/end calls without a reset() will accumulate time.

Definition at line 80 of file RE_TimerQuery.h.

int64 RE_GPUTimer::getElapsedTimeNS ( RE_Render r)
inline

Fetch elapsed render time between begin/end in nanoseconds.

Definition at line 100 of file RE_TimerQuery.h.

bool RE_GPUTimer::hasResult ( ) const
inline

Returns true if a begin/end was performed. Does not mean the result is necessarily available yet.

Definition at line 90 of file RE_TimerQuery.h.

void RE_GPUTimer::init ( RE_Render r)
inline

Initialize the queries (queries cannot be created if a query is running)

Definition at line 58 of file RE_TimerQuery.h.

bool RE_GPUTimer::isResultAvailable ( RE_Render r)
inline

Returns true if the query result is available from the GL server.

Definition at line 93 of file RE_TimerQuery.h.

void RE_GPUTimer::reset ( void  )
inline

Reset the queries without deleting them.

Definition at line 114 of file RE_TimerQuery.h.


The documentation for this class was generated from the following file: