Skip to main content

Game Loop and Typical Implementation

  • Living reference work entry
  • First Online:
Encyclopedia of Computer Graphics and Games
  • 143 Accesses

Synonyms

Game engine loop; Game engine main loop; Game engine update loop

Definitions

At the innermost core of every game engine is a compact infinite loop. This loop continuously iterates through the steps of receiving and processing player input, updating the entire game state, and rendering and displaying the game objects. This loop is executed at a short but discretised time interval supporting seemingly instantaneous interactions between the players’ input and the graphical gaming elements. This constantly running loop is referred to as the game loop.

Introduction

To convey a lifelike sense of instantaneity, each cycle of the game loop must be completed within a normal human’s reaction time. This is often referred to as real time: the amount of time that is too short for humans to perceive both visually and cognitively. Typically, real-time can be achieved when the game loop is running at a rate of at least 40–60 cycles in a second. The speed of a standard game loop, with one...

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Institutional subscriptions

References

  • Gregory, J.: Game Engine Architecture, 2nd edn. CRC Press, Boca Raton FL (2014). ISBN: 978-1-46-656001-7

    Google Scholar 

  • Nystrom, R.: Game Programming Patterns. Genever Benning (2014). ISBN: 978-0-99-058290-8. www.gameprogrammingpatterns.com

  • Sung, K., Pavleas, J., Arnez, F., Pace, J.: Build Your Own 2D Game Engine and Create Great Web Games. APress, Berkeley (2015). ISBN: 978-1-48-420953-0

    Book  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Aaron Hitchcock .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2018 Springer Nature Switzerland AG

About this entry

Check for updates. Verify currency and authenticity via CrossMark

Cite this entry

Hitchcock, A., Sung, K. (2018). Game Loop and Typical Implementation. In: Lee, N. (eds) Encyclopedia of Computer Graphics and Games. Springer, Cham. https://doi.org/10.1007/978-3-319-08234-9_224-1

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-08234-9_224-1

  • Received:

  • Accepted:

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-08234-9

  • Online ISBN: 978-3-319-08234-9

  • eBook Packages: Springer Reference Computer SciencesReference Module Computer Science and Engineering

Publish with us

Policies and ethics