MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / getMsg

Method getMsg

Source/Falcor/Utils/Timing/FrameRate.cpp:33–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31namespace Falcor
32{
33std::string FrameRate::getMsg(bool vsyncOn) const
34{
35 double frameTime = getAverageFrameTime();
36 std::string msg = fmt::format("{:.1f} FPS ({:.1f} ms/frame)", 1.f / frameTime, frameTime * 1000.0);
37 if (vsyncOn)
38 msg += std::string(", VSync");
39 return msg;
40}
41} // namespace Falcor

Callers 4

showFpsFunction · 0.80
to_stringFunction · 0.80
renderUIMethod · 0.80
onFrameRenderMethod · 0.80

Calls 2

getAverageFrameTimeFunction · 0.85
stringFunction · 0.85

Tested by 1

renderUIMethod · 0.64