How do you separate game logic from display?

后端 未结 8 2027
隐瞒了意图╮
隐瞒了意图╮ 2020-12-24 07:33

How can you make the display frames per second be independent from the game logic? That is so the game logic runs the same speed no matter how fast the video card can render

8条回答
  •  甜味超标
    2020-12-24 08:29

    Koen Witters has a very detailed article about different game loop setups.

    He covers:

    • FPS dependent on Constant Game Speed
    • Game Speed dependent on Variable FPS
    • Constant Game Speed with Maximum FPS
    • Constant Game Speed independent of Variable FPS

    (These are the headings pulled from the article, in order of desirability.)

提交回复
热议问题