Panda3D
Public Member Functions | List of all members
PStatGPUTimer Class Reference

This is a special type of PStatTimer that also uses a timer query on the GSG to measure how long a task actually takes to execute on the GPU, rather than how long it took for the API commands to be queued up. More...

#include "pStatGPUTimer.h"

Inheritance diagram for PStatGPUTimer:
PStatTimer

Public Member Functions

 PStatGPUTimer (GraphicsStateGuardian *, PStatCollector &col)
 
 PStatGPUTimer (GraphicsStateGuardian *, PStatCollector &col, Thread *)
 
- Public Member Functions inherited from PStatTimer
 PStatTimer (PStatCollector &)
 
 PStatTimer (PStatCollector &, Thread *)
 

Detailed Description

This is a special type of PStatTimer that also uses a timer query on the GSG to measure how long a task actually takes to execute on the GPU, rather than how long it took for the API commands to be queued up.

This class may only be used on the draw thread.

At present, it tracks both the CPU time (like a regular PStatTimer does) and the GPU time, which is recorded using a special PStatThread.

Definition at line 36 of file pStatGPUTimer.h.


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