Changeset 8215 for code/trunk/src
- Timestamp:
- Apr 9, 2011, 7:07:17 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/libraries/core/Game.cc
r8079 r8215 209 209 210 210 // Limit frame rate 211 static bool hasVSync = GraphicsManager::getInstance().hasVSyncEnabled(); // can be static since changes of VSync currently require a restart 212 if (this->fpsLimit_ > 0 && !hasVSync) 213 this->updateFPSLimiter(); 211 if(GameMode::showsGraphics()) 212 { 213 static bool hasVSync = GraphicsManager::getInstance().hasVSyncEnabled(); // can be static since changes of VSync currently require a restart 214 if (this->fpsLimit_ > 0 && !hasVSync) 215 this->updateFPSLimiter(); 216 } 217 else 218 { 219 if (this->fpsLimit_ > 0) 220 this->updateFPSLimiter(); 221 } 214 222 } 215 223
Note: See TracChangeset
for help on using the changeset viewer.