bk99.de entertain the web since 1997

Game Programming Patterns as a free practical book

Summary

Robert Nystrom explains recurring architectural problems in games with concrete C++ code, diagrams and weighed-up alternatives. The book can be read in full online. The examples mostly use C++.

Ideas

  • Game loops decouple simulation from input and rendering.
  • Component patterns break large game objects down into capabilities.
  • Object pools reduce repeated memory allocations.
  • Event queues separate producers from deferred processing.

Insights

  • Patterns are named trade-offs, not universal solutions.
  • Real-time requirements change classic software architecture.
  • Concrete examples show costs better than abstract class diagrams.

Facts

  • Nystrom later published the content in print.

Recommendations

  • Only choose patterns after you have observed a problem.
  • Document the run-time and memory consequences of every abstraction.

References

Read the original article

Search the Web Archive