ABSTRACT

Streaming is the process of playing long samples from relatively slow devices without first loading everything into memory. Despite growing memory capacity and codec improvements, it’s still commonly used to make titles which are bigger and more varied than otherwise would be possible.

This chapter explains how to implement streaming and arrange uninterrupted replay from optical and magnetic discs, flash memory and remote networks. It cites and compares the streaming behaviour of games like Dance Factory, Grand Theft Auto, Operation Flashpoint, Sea of Thieves, Showdown, Vib Ribbon and Worms.

Concepts: when and why to stream or not, buffer sizes and double buffering, optical drive hardware components, CD, DVD and Blu-ray differences, angular and linear velocities, short and long seek delays, disc layout and layers, combinatorial considerations, asset duplication, block alignment and structure, optional and standard hard drives, writing streams to flash memory. How many streams per spindle? Are streams sucking or blowing? Which glitches are most obvious?

Case studies in the following chapter collate additional practical advice.