When running on slow hardware, the framerate can drop until the game update loop will reach MAX_FRAMESKIP.
但运行在低速的硬件下时,帧速率会下降直到游戏更新循环抵达MAX_FRAMESKIP。
If you don't want to bother with a prediction function, you can work with a maximum frame rate, but finding the right game update rate for both slow and fast hardware can be tricky.
如果你不想花心思在预报函数上,转而使用使用最大帧速率,你会发现在低速和高速硬件都获得正确的游戏更新速率会很棘手。
The update timer is used to refresh the state of the game every 200 milliseconds.
更新定时器用于每200毫秒刷新一次游戏状态。
应用推荐