mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-19 05:23:00 +01:00
GL: Fixed GPU timer frequency.
This commit is contained in:
@@ -7611,7 +7611,7 @@ namespace bgfx { namespace gl
|
||||
m_gpuTimer.end(frameQueryIdx);
|
||||
|
||||
const TimerQueryGL::Result& result = m_gpuTimer.m_result[BGFX_CONFIG_MAX_VIEWS];
|
||||
double toGpuMs = 1000.0 / 1e6;
|
||||
double toGpuMs = 1000.0 / 1e9;
|
||||
elapsedGpuMs = (result.m_end - result.m_begin) * toGpuMs;
|
||||
maxGpuElapsed = elapsedGpuMs > maxGpuElapsed ? elapsedGpuMs : maxGpuElapsed;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user