MCPcopy Create free account
hub / github.com/SpartanJ/eepp / setFrameRateLimit

Method setFrameRateLimit

src/eepp/window/window.cpp:349–356  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

347}
348
349void Window::setFrameRateLimit( Uint32 FrameRateLimit ) {
350 if ( FrameRateLimit == ContextSettings::FrameRateLimitScreenRefreshRate ) {
351 Display* currentDisplay = Engine::instance()->getDisplayManager()->getDisplayIndex(
352 isOpen() ? getCurrentDisplayIndex() : 0 );
353 FrameRateLimit = currentDisplay->getRefreshRate();
354 }
355 mFrameData.FPS.Limit = (Float)FrameRateLimit;
356}
357
358Uint32 Window::getFrameRateLimit() const {
359 return static_cast<Uint32>( mFrameData.FPS.Limit );

Callers 5

initMethod · 0.80
createRendererMenuMethod · 0.80
initMethod · 0.80
cmdFrameLimitMethod · 0.80
inputMethod · 0.80

Calls 3

getDisplayIndexMethod · 0.80
getDisplayManagerMethod · 0.80
getRefreshRateMethod · 0.80

Tested by 1

inputMethod · 0.64