MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / ProfileFps

Function ProfileFps

engine/Poseidon/Dev/Debug/DebugOverlay.cpp:855–861  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

853 s_frameMsHead = (s_frameMsHead + 1) % kProfHistory;
854}
855
856float ProfileFps()
857{
858 if (!GEngine)
859 return 0.0f;
860 const uint32_t lastMs = GEngine->GetLastFrameDuration();
861 return lastMs > 0 ? 1000.0f / static_cast<float>(lastMs) : 0.0f;
862}
863
864float ProfileFrameMs()

Callers 1

DrawProfileTabFunction · 0.85

Calls 1

GetLastFrameDurationMethod · 0.80

Tested by

no test coverage detected