Jump to content

engine.game.setIFPS & engine.game.setFTime


photo

Recommended Posts

Posted

Can I get a bit of an explanation on how these two operate and the difference between them. Also the relationship between these two and engine.game.setScale() would be handy.

Posted

engine.game.setFTime function sets frame time for the game to have fixed framerate.

Frame time value is used in Game::flush function for game framerate synchronization to introduces delay if actual frame time more then frame time value.

Function Engine::do_swap calls flush for the game.

engine.game.setIFps sets a frame duration. This function is used to set a constant FPS.

ifps value affects the calculation of physical parameters of the player in Player::update.

×
×
  • Create New...