Sam Hames

Nyah!

Deciphering Glyph :: A Better Pygame Mainloop

https://glyph.twistedmatrix.com/2022/02/a-better-pygame-mainloop.html

A suggestion for a better approach to the main loop of the game, balancing the competing demands of rendering frames at the appropriate time, not doing too much CPU work and burning through the battery unnecessarily, and computing all the other things that go into a game.

Surprise, the answer is Python async.

Tags

Related By Tags

Details

Revised
Created
Edited