The main game loop handles three major tasks:
Get user input
Update the game state
Render
while(true) { processInput() update() render() }
http://higherorderfun.com/blog/2010/08/17/understanding-the-game-main-loop/
https://dewitters.com/dewitters-gameloop/
Last updated 3 years ago