MCPcopy Create free account
hub / github.com/SFML/SFML / setFramerateLimit

Method setFramerateLimit

src/SFML/Window/Window.cpp:168–174  ·  view source on GitHub ↗

///////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

166
167////////////////////////////////////////////////////////////
168void Window::setFramerateLimit(unsigned int limit)
169{
170 if (limit > 0)
171 m_frameTimeLimit = seconds(1.f / static_cast<float>(limit));
172 else
173 m_frameTimeLimit = Time::Zero;
174}
175
176
177////////////////////////////////////////////////////////////

Callers 2

mainFunction · 0.80
mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected