擅长:python、mysql、java
<p>你可能还想研究一下游戏时间时钟.tick()而不是pygame.Clock.tick\u busy\u循环():</p>
<p><a href="http://www.pygame.org/docs/ref/time.html#pygame.time.Clock.tick" rel="nofollow">http://www.pygame.org/docs/ref/time.html#pygame.time.Clock.tick</a></p>
<blockquote>
<p>Note that this function uses SDL_Delay function which is not accurate on every platform, but does not use much cpu. Use tick_busy_loop if you want an accurate timer, and don’t mind chewing cpu.</p>
</blockquote>
<p>当然,除非你严格要求帧速率保持在60。你知道吗</p>