A possible solution for this could be to keep updating the game at that rate, but reduce the rendering framerate. This can be done using following game loop.
一个可行的解决办法是保持更新的速度,而减少渲染的帧速率。
Each time through the loop, we perform game logic updates, input updating and handling, and rendering.
在每次进入循环的时候,我们会执行游戏逻辑的更新,输入更新与处理,还有渲染。
应用推荐