MCPcopy Create free account
hub / github.com/KTStephano/StratusGFX / SetMaxFrameRate

Method SetMaxFrameRate

Source/Engine/StratusEngine.cpp:99–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97 }
98
99 void Engine::SetMaxFrameRate(const uint32_t rate) {
100 std::unique_lock<std::shared_mutex> ul(mainLoop_);
101 _params.maxFrameRate = std::max<uint32_t>(rate, 30);
102 }
103
104 uint64_t Engine::FrameCount() const {
105 return stats_.currentFrame;

Callers 2

FrameRateControllerMethod · 0.80
HandleInputMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected