![]() |
Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
|
At each enter/leave-region event, we do an async GPU timestamp query. More...

Classes | |
| struct | SEvent |
| struct | SFrame |
Public Member Functions | |
| CProfiler2GPUImpl (CProfiler2 &profiler) | |
| ~CProfiler2GPUImpl () | |
| void | FrameStart (Renderer::Backend::IDeviceCommandContext *deviceCommandContext) |
| void | FrameEnd (Renderer::Backend::IDeviceCommandContext *deviceCommandContext) |
| void | RecordRegion (Renderer::Backend::IDeviceCommandContext *deviceCommandContext, const char *id, bool isEnter) |
| void | RegionEnter (Renderer::Backend::IDeviceCommandContext *deviceCommandContext, const char *id) |
| void | RegionLeave (Renderer::Backend::IDeviceCommandContext *deviceCommandContext, const char *id) |
Private Member Functions | |
| NONCOPYABLE (CProfiler2GPUImpl) | |
| void | ProcessFrames () |
| void | PopFrontFrame () |
| uint32_t | NewQuery () |
Private Attributes | |
| std::deque< SFrame > | m_Frames |
| CProfiler2 & | m_Profiler |
| CProfiler2::ThreadStorage & | m_Storage |
| std::vector< uint32_t > | m_FreeQueries |
At each enter/leave-region event, we do an async GPU timestamp query.
When all the queries for a frame have their results available, we convert their GPU timestamps into durations and record the data.
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprivate |
|
private |
|
inlineprivate |
|
inlineprivate |
|
inline |
|
inline |
|
inline |
|
private |
|
private |
|
private |
|
private |