Added vsync info to debug display.

This commit is contained in:
bkaradzic 2013-06-08 08:25:03 -07:00
parent 1e6c8000c7
commit 493766caa6
3 changed files with 6 additions and 3 deletions

View file

@ -2748,11 +2748,12 @@ namespace bgfx
);
pos = 10;
tvm.printf(10, pos++, 0x8e, " Frame: %7.3f, % 7.3f \x1f, % 7.3f \x1e [ms] / % 6.2f FPS"
tvm.printf(10, pos++, 0x8e, " Frame: %7.3f, % 7.3f \x1f, % 7.3f \x1e [ms] / % 6.2f FPS%s"
, double(frameTime)*toMs
, double(min)*toMs
, double(max)*toMs
, freq/frameTime
, !!(m_resolution.m_flags&BGFX_RESET_VSYNC) ? " (vsync)" : ""
);
double elapsedCpuMs = double(elapsed)*toMs;

View file

@ -2782,11 +2782,12 @@ namespace bgfx
tvm.printf(0, pos++, 0x0f, " Device: %s (%s)", identifier.Description, identifier.Driver);
pos = 10;
tvm.printf(10, pos++, 0x8e, " Frame: %7.3f, % 7.3f \x1f, % 7.3f \x1e [ms] / % 6.2f FPS"
tvm.printf(10, pos++, 0x8e, " Frame: %7.3f, % 7.3f \x1f, % 7.3f \x1e [ms] / % 6.2f FPS%s"
, double(frameTime)*toMs
, double(min)*toMs
, double(max)*toMs
, freq/frameTime
, !!(m_resolution.m_flags&BGFX_RESET_VSYNC) ? " (vsync)" : ""
);
double elapsedCpuMs = double(elapsed)*toMs;

View file

@ -3317,11 +3317,12 @@ namespace bgfx
tvm.printf(0, pos++, 0x0f, "GLSL version: %s", s_renderCtx.m_glslVersion);
pos = 10;
tvm.printf(10, pos++, 0x8e, " Frame CPU: %7.3f, % 7.3f \x1f, % 7.3f \x1e [ms] / % 6.2f FPS"
tvm.printf(10, pos++, 0x8e, " Frame CPU: %7.3f, % 7.3f \x1f, % 7.3f \x1e [ms] / % 6.2f FPS%s"
, double(frameTime)*toMs
, double(min)*toMs
, double(max)*toMs
, freq/frameTime
, !!(m_resolution.m_flags&BGFX_RESET_VSYNC) ? " (vsync)" : ""
);
double elapsedCpuMs = double(elapsed)*toMs;