MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / GetFPS

Function GetFPS

Descent3/game.cpp:759–764  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

757void CloseGameScript();
758
759float GetFPS() {
760 if (Frametime == 0.0f) {
761 Frametime = 0.1f;
762 }
763 return 1.0 / Frametime;
764}
765
766///////////////////////////////////////////////////////////////////////////////
767// Game Execution

Callers 3

RenderHUDFrameFunction · 0.85
RenderHUDItemsFunction · 0.85
RenderTerrainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected