NES Sprite Flicker Explained: The Eight-Sprite Scanline Limit
![]()
NES sprite flicker explained through the 2C02 PPU, eight sprites per scanline, OAM rotation, and why CRT phosphor hid what clean digital output reveals.
Load up Contra on an emulator, get to a busy waterfall stage, and watch the enemies shimmer. Some frames show a full row of soldiers, the next shows gaps where a sprite simply is not drawn. Nothing is wrong with the ROM. The NES PPU, the 2C02, can track 64 hardware sprites of either 8×8 or 8×16 pixels, and it can display only eight of them on any single horizontal scanline. Crowd more than eight onto one line and the extra ones vanish for that frame. Developers fought this with a software trick, and understanding it explains a lot about why late-1980s NES games look the way they do.
The PPU sprite budget
Sprite data lives in OAM, 256 bytes of internal memory, four bytes per sprite for position, tile number and attributes, which gives the 64-sprite ceiling. During rendering the PPU walks the scanlines and, for each line, checks which sprites have a Y range covering that line. It keeps the first eight it finds in OAM order and drops the rest. The limit is per scanline, not per screen, so a tall column of enemies can be fine at the top and bottom while one dense horizontal band loses half its shapes. Sprite priority is tied to OAM index, meaning sprite zero is drawn on top of the others when the limit is not hit, and the whole eight-per-line rule is a hardware consequence of how few comparators the 2C02 had.
Software sprite cycling
Since OAM order decides who survives a crowded line, the fix is to reorder OAM every frame. Studios wrote routines that rotate the sprite list, so the sprite that was dropped on frame one moves to the front of the queue on frame two. No sprite disappears permanently; each one blinks in and out in turn, and at thirty or sixty frames per second the eye reads a faint, flickering crowd instead of an empty gap. This is often called software sprite cycling or sprite rotation, and it is a deliberate scheduling decision made in game code, not a bug the PPU fixes on its own. A game that does not bother to cycle shows a hard, permanent hole in the same place every frame.
Crowded screens that show it
Certain late-1980s titles are practically catalogues of the problem. The table below lists cases where a player can see the limit at work.
| Game | Year | Where the flicker shows |
|---|---|---|
| Contra | 1988 | Rows of soldiers and simultaneous bullets in the waterfall and base stages |
| Gradius | 1987 | Swarms of enemies and the player’s multiple options on one line |
| Castlevania | 1986 | Clusters of bats, candles and projectiles in tight corridors |
| Mega Man 2 | 1988 | Double-density boss sprites built from many 8×16 tiles |
| Ghosts ‘n Goblins | 1986 | Many small enemies and fireballs on screen at once in the NES port |
Boss characters are a special case. A large boss is assembled from a grid of hardware sprites, so a single target can consume most of the eight-per-line allowance by itself, leaving little room for the player’s shots. Mega Man 2’s bigger bosses are drawn as overlapping sprite pairs, which is why the flicker concentrates around them during a fight rather than spreading evenly across the screen.
The sprite overflow flag and why it was unreliable
The PPU exposes a status register with a sprite overflow flag, set when more than eight sprites land on a scanline. In principle a programmer could read that flag during the frame to time a raster split or change a scroll value. In practice the flag has a known quirk: the hardware evaluation can miss the exact overflow condition in specific sprite layouts, and the flag stays set until the status register is read and the frame advances. That makes it a poor clock. Programmers who leaned on it for split-screen effects got results that varied with the sprite arrangement, so most commercial games used the reliable sprite zero hit or a fixed scanline counter instead and treated the overflow flag as a hint rather than a timer.
Composite video and CRT phosphor softened it
On a real television the flicker was far less harsh than it looks now. The NES composite signal is noisy and bandwidth-limited, and a CRT’s phosphor keeps glowing briefly after the beam passes, so a sprite that is present on one frame and absent on the next does not go fully dark. The beams blend adjacent frames into a softer, semi-transparent shimmer. Combined with the slight bleed of composite colour, the missing pixels read as a translucent object rather than a hole. Players in 1988 saw a flickering crowd, not a blinking void.
How other hardware handled the budget
The contrast with 16-bit machines is stark. The SNES and the Sega Genesis allow far more sprites per line and larger sprite sizes, so the same crowd of enemies can be drawn without dropping anything. The Master System, built around a TMS9918-derived video chip, has its own sprite limit and a different approach to priority, so it flickers too but for slightly different reasons and with a different palette. None of these chips needed the NES style of frantic OAM rotation for ordinary scenes, which is one reason ports of the same arcade game can look calmer on a 16-bit console.
Why clean digital output makes it look worse
A modern emulator renders crisp square pixels with no phosphor decay and no composite bleed, so a dropped sprite becomes an obvious hard on-off blink. Some frontends offer a transparency or flicker-reduction hack that blends the alternate frames back into a semi-transparent sprite, and CRT shaders reintroduce a little of the softness. Both are a matter of taste rather than accuracy: the accurate output is the flicker, and the blend is a reconstruction of what a CRT did. What matters for play is that you can still read the threat. Even through the flicker, a rotated crowd tells you where a cluster of enemies is, which direction bullets are travelling, and roughly how many shots are in flight. I would rather have the flicker than a filter that hides a projectile I need to dodge.
Next time a dense NES screen starts shimmering, watch one enemy for a dozen frames instead of the whole field. You will see it appear, vanish, appear again, and that rhythm is the OAM rotation doing its job rather than the game struggling.
Related reading
If you want to keep digging into this corner of the library, these two posts on Roms Get go a little further:
