frame rate to 25fps cpu usage 500% less
This commit is contained in:
parent
32ab66e4dc
commit
5113ab36ce
1 changed files with 1 additions and 0 deletions
|
@ -21,6 +21,7 @@ Game* Game::i() {
|
|||
void Game::run() {
|
||||
sf::Clock c;
|
||||
sf::RenderWindow window(sf::VideoMode(W_WIDTH, W_HEIGHT), "( ( ( Radio Waves ) ) )", sf::Style::Close);
|
||||
window.setFramerateLimit(25);
|
||||
window.setKeyRepeatEnabled(false);
|
||||
float oldTime = c.getElapsedTime().asSeconds();
|
||||
while (isRunning) {
|
||||
|
|
Reference in a new issue