-------------------------------------------------------------
| 156 | |
| 157 | // ------------------------------------------------------------- |
| 158 | float Tr2ProfileTimer::GpuTime() const |
| 159 | { |
| 160 | if( m_gpuTimer.IsValid() ) |
| 161 | { |
| 162 | USE_MAIN_THREAD_RENDER_CONTEXT(); |
| 163 | return m_gpuTimer.GetTime( renderContext ) * 1000.f; |
| 164 | } |
| 165 | return -1.f; |
| 166 | } |
| 167 | |
| 168 | // ------------------------------------------------------------- |
| 169 | float Tr2ProfileTimer::CpuTime() const |