Lecture "Game Architecture" in Game Development course at University of Management and Technology Lahore for Spring 2017 Semester by Hafiz Ammar Siddiqui
2. Game Architecture
• Game consists of three major steps executed in the following order repeatedly
FROM: HAFIZ AMMAR SIDDIQUI – COURSE: GAME DEVELOPMENT – INSTITUTE: UNIVERSITY OF MANAGEMENT AND TECHNOLOGY
Input Output
Basic game architecture
Graphics Rendering
Sound
Physics
Animation
User Interface
Artificial Intelligence
Networking
Game Processing
4. Main Game Loop
• Every game consists of a main game loop which performs a series of tasks every frame
• Main game loop runs continuously during the game. It processes input, updates the
game, and renders the output
FROM: HAFIZ AMMAR SIDDIQUI – COURSE: GAME DEVELOPMENT – INSTITUTE: UNIVERSITY OF MANAGEMENT AND TECHNOLOGY
Process Input Update Game Render Output
Main game loop
5. Time and Speed in Main Game Loop
• Most of the tasks are performed within a single frame (single iteration of main game
loop) while some tasks span over multiple frames
• Frame Per Second (FPS): The number of times the main game loop is executed in one
second and it varies from system to system
• High performance systems will have higher frame rates, so game time and speed must
be consistentacross differenttypes of systems
FROM: HAFIZ AMMAR SIDDIQUI – COURSE: GAME DEVELOPMENT – INSTITUTE: UNIVERSITY OF MANAGEMENT AND TECHNOLOGY
6. Input and Output in Main Game Loop
• Input is read only once per frame per device but it can be processed either in single
frameor over multiple frames
• Output is rendered and drawn every frame and it is done after updating the state of
the game (after performingall the other tasks)
FROM: HAFIZ AMMAR SIDDIQUI – COURSE: GAME DEVELOPMENT – INSTITUTE: UNIVERSITY OF MANAGEMENT AND TECHNOLOGY