4-game architecture (game development - umt spring 2017)
TRANSCRIPT
GameArchitecture
FROM:HAFIZAMMARSIDDIQUI– COURSE:GAMEDEVELOPMENT– INSTITUTE:UNIVERSITYOFMANAGEMENTANDTECHNOLOGY
GameArchitecture• Game consists of threemajor steps executed in the following order repeatedly
FROM:HAFIZAMMARSIDDIQUI– COURSE:GAMEDEVELOPMENT– INSTITUTE:UNIVERSITYOFMANAGEMENTANDTECHNOLOGY
Input Output
Basicgamearchitecture
GraphicsRenderingSoundPhysics
AnimationUserInterface
ArtificialIntelligenceNetworking
GameProcessing
MainGameLoop
FROM:HAFIZAMMARSIDDIQUI– COURSE:GAMEDEVELOPMENT– INSTITUTE:UNIVERSITYOFMANAGEMENTANDTECHNOLOGY
MainGameLoop• Every game consists of a main game loopwhich 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:HAFIZAMMARSIDDIQUI– COURSE:GAMEDEVELOPMENT– INSTITUTE:UNIVERSITYOFMANAGEMENTANDTECHNOLOGY
ProcessInput UpdateGame RenderOutput
Maingameloop
TimeandSpeedinMainGameLoop•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 different types of systems
FROM:HAFIZAMMARSIDDIQUI– COURSE:GAMEDEVELOPMENT– INSTITUTE:UNIVERSITYOFMANAGEMENTANDTECHNOLOGY
InputandOutputinMainGameLoop• 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:HAFIZAMMARSIDDIQUI– COURSE:GAMEDEVELOPMENT– INSTITUTE:UNIVERSITYOFMANAGEMENTANDTECHNOLOGY
Reference• GameEngineArchitecture- JasonGreygory
FROM:HAFIZAMMARSIDDIQUI– COURSE:GAMEDEVELOPMENT– INSTITUTE:UNIVERSITYOFMANAGEMENTANDTECHNOLOGY