Skip to main content
3 events
when toggle format what by license comment
Jun 18, 2017 at 12:27 comment added DMGregory Gaffer on Games "Fix Your Timestep!" is generally the go-to. Game Programming Patterns develops a similar loop from a slightly different angle. Neither shows a hybrid loop with both fixed and variable update steps like eg. Unity uses, but it's easy enough to insert a variable step after the fixed steps & interpolation but before rendering, if that's how you want to go.
Jun 18, 2017 at 11:58 comment added Shayan Niazi Thanks for your suggestions and observations. Designing a proper game loop is a lot more complex than I had previously thought. Could you post some sort of pseudocode/template that could be generically followed? The one I currently 'implemented' had been bits and pieces from all over the web, hence the reason why I didn't get it right. Conceptually, I may be a little far off as well.
Jun 17, 2017 at 13:57 history answered DMGregory CC BY-SA 3.0