Jump to content

  • Log In with Google      Sign In   
  • Create Account

A different way



Game loops

Posted by Norman Barrows, 08 September 2013 · 626 views

Game loops

render everything, process input, and update everything. that's what games do. this leads to a basic loop like:

while ! quitgame
process_input
update_all
render_all

the order of the calls:
there are only two possible orders for a game loop:
1. input - update - render
2. input - render - update
all other orderings are simply out of ph...





PARTNERS