HDK
|
#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... | |
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.
|
inline |
Definition at line 55 of file RE_TimerQuery.h.
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.
|
inline |
Deletes the queries. init() must be called again.
Definition at line 117 of file RE_TimerQuery.h.
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.
Fetch elapsed render time between begin/end in nanoseconds.
Definition at line 100 of file RE_TimerQuery.h.
|
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.
Initialize the queries (queries cannot be created if a query is running)
Definition at line 58 of file RE_TimerQuery.h.
|
inline |
Returns true if the query result is available from the GL server.
Definition at line 93 of file RE_TimerQuery.h.
Reset the queries without deleting them.
Definition at line 114 of file RE_TimerQuery.h.