Devlog

8,000 drones at about 72 fps: how swarm wings work

Published · Updated

Eight thousand drones, in 8 wings of 1,000, ran at about 72 frames a second on the development machine. The trick is that a wing of drones thinks as one.

One brain, many bodies

The enemy is a machine swarm. It comes in wings, 25 drones each by default.

How a wing fights

A swarm smothers everything near it, while a lone Mk3 fighter focuses on one target.

How a wing dies

Each drone is as tough as a fighter of its Mark, and the wing’s hull is all of theirs added up: a Mk1 wing has 25 × 90 = 2,250. Every drone’s worth of damage it takes kills one, so the cloud thins and its fire weakens. The marker shows the count, for example “Swarm wing 1 · 18/25”.

With the carrier’s Mk3 point defence doing 10 damage a hit, a Mk1 drone takes about 9 hits, a Mk3 drone about 36. Rounds aimed at a wing go for one drone each, so tracers fly into and past drones, not into the empty middle.

The cost is per wing

The benchmark spawned Mk3 wings 3 km out over Bukittinggi, at 1600 × 900 with rendering on, on an RTX 3070 Laptop and a Ryzen 7 5800H.

Wings × dronesDronesfpsFrame
none0~1855.4 ms
10 × 252501735.8 ms
40 × 251,0008012.5 ms
40 × 502,0007413.5 ms
80 × 504,0004223.6 ms
8 × 1,0008,00071–73~14 ms

A caveat: the samples were taken during the approach and the chase, not in a brawl with many targets, and each drone’s fire timer runs every frame, so heavy firing will cost more.

Before wings, the game got 100 individual raiders from 82 ms a frame down to 11 ms by removing loops that checked every fighter against every other. Wings were the next step.

The numbers and the reasons behind them: swarm drones and wings.

Why these numbers →

Related