Worked example 1
A student is playing a 3D computer game. Explain the role of the CPU, RAM, and the GPU (a specialised processor for graphics) in rendering a single frame of the game.
Show solution outline
- CPU: The CPU processes the game's logic, such as AI behaviour, physics calculations, and user input from the keyboard/mouse. It sends instructions and data about the game state (e.g., character positions) to the RAM and GPU. [1 mark]
- RAM: The RAM holds the current game level, character models, textures, and sound files that are needed for immediate access. The CPU fetches data from RAM, and the GPU also accesses textures and model data from RAM. [1 mark]
- GPU (Graphics Processing Unit): The CPU offloads the intensive task of rendering the 3D scene to the GPU. The GPU takes the scene data (vertices, textures) and performs millions of calculations to create the final 2D image (the frame) that is sent to the monitor. [1 mark]