소스 검색

Added a simple fps limit to avoid crunching too much FPS on devices that doesn't support vsync.

Eiyeron Fulmincendii 10 년 전
부모
커밋
e90c43edc8
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      platform/sfml/Graphics.cpp

+ 1 - 0
platform/sfml/Graphics.cpp

@@ -13,6 +13,7 @@ void GRAPHICS::init()
 {
     window.create(sf::VideoMode::getDesktopMode(), "WalrusRPG", sf::Style::Fullscreen);
     window.setVerticalSyncEnabled(true);
+    window.setFramerateLimit(60);
     view = sf::View(window.getDefaultView());
     buffer.create(320, 240);
 }