MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / GetFps

Function GetFps

Source/Engine/Engine/Time.cpp:25–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23 float UnfocusedMaxFPS = 0.0f;
24 bool UnfocusedPause = false;
25 float GetFps(float fps)
26 {
27 if (UnfocusedMaxFPS > 0 && !Engine::HasFocus && fps > UnfocusedMaxFPS)
28 fps = UnfocusedMaxFPS;
29 return fps;
30 }
31#endif
32}
33

Callers 3

OnBeginUpdateMethod · 0.85
OnBeginPhysicsMethod · 0.85
OnBeginDrawMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected