Worlds made of triangles
Every object in a 3D game, from a character's face to a city skyline, is built from a mesh of flat triangles. Triangles are used because three points always lie on a flat plane, which makes them simple and fast to process. A detailed character may contain tens of thousands of them and a whole scene many millions. Each corner, called a vertex, stores a position in space plus extra information, such as which part of an image, called a texture, should be painted onto it. Artists build these meshes and textures in advance. While the game runs, its job is to turn this collection of shapes into a picture, again and again.
From scene to screen
Drawing a frame follows a sequence known as the graphics pipeline, carried out mostly by the graphics processing unit, or GPU. First, every vertex is moved into place: the character's arm swings, the camera turns, and mathematics projects the three-dimensional points onto the flat screen, with distant objects shrinking towards a vanishing point. Next comes rasterisation, which works out which pixels each projected triangle covers. A depth buffer records how far away each drawn pixel is, so nearer surfaces hide those behind them. Triangles facing away or lying outside the view are discarded early, because the cheapest triangle to draw is the one the player cannot see.
Painting with light
Once the GPU knows which surface lies under each pixel, small programs called shaders calculate its colour. They look up the texture, then work out how light should affect it: how bright a surface is when it faces a lamp, how shiny it appears, what shadows fall across it. Modern games simulate materials such as metal, skin and wet stone using physically based rules. Shading is where most of the work lies, because it runs for every pixel. Graphics processors are built for exactly this, with thousands of small cores computing many pixels in parallel, the same design that later made GPUs so useful for artificial intelligence.
The race against the clock
The pressure comes from time. To show 60 frames a second, a game must finish each frame in about 16.7 milliseconds, including physics, sound and game logic as well as graphics. At 120 frames a second the budget halves to about 8.3 milliseconds. A full-HD screen has about 2.1 million pixels, so shading every one at 60 frames a second means roughly 124 million pixel calculations each second, often many times over for effects and lighting. A 4K screen has four times as many pixels. Developers therefore spend enormous effort on shortcuts, using simpler versions of distant objects and upscaling a smaller image to fill the screen.
Faking light, then tracing it
Real light bounces endlessly between surfaces, and simulating that fully is very expensive. For decades games approximated it with tricks: pre-calculated lighting baked into textures, shadow maps and screen-space reflections that only reflect what is already visible. Ray tracing models light more directly by following rays from the camera into the scene to see what they hit, producing more natural reflections, shadows and indirect light. Films have used it for years with hours per frame. From 2018, consumer graphics cards added dedicated hardware to trace rays in real time, and AI techniques now clean up noisy images built from relatively few rays, making the approach practical in games.
Common misunderstandings
A game is not a pre-recorded film; every frame is calculated on the spot from the current state of the world, which is why players can move anywhere. A higher frame rate is also not purely cosmetic. Each frame is a fresh sample of the player's input, so more frames reduce the delay between pressing a button and seeing the result, which matters in competitive games. More triangles do not automatically mean better graphics either: lighting, materials and animation often matter more. The same pipeline now powers architectural visualisation, flight simulators, virtual production for television and digital models of buildings, so techniques refined for entertainment increasingly shape serious work.
Sources & further reading
Figures are rounded and widely published; check the linked organisations for the latest editions. These organisations do not endorse this website.



