Thousand Banners

BANNER NOTES

Battles of 100,000: where we are

From a ridge at sunset, a commander and two aides look down on two vast armies, one under red banners and one under blue, filling a wide valley to the horizon.
Concept art

Our second rule is Scale without limits. The goal behind it is a single battle with 100,000 soldiers on the field. Here is what that means, how far we have got, and what is still in the way.

Every soldier is real

In a battle of 100,000, each soldier is worked out on his own: where he stands, who he is fighting, whether he is tired, and whether he holds or runs. Nobody is faked, merged into a blob or skipped when the camera looks away.

There is also no built-in limit. Army size comes from the game's data files, not from a number in the code, so a mod can go bigger still.

Why it is hard

A battle moves in small steps, ten every second. In each step every soldier has to look around, move, push against the men beside him, fight and check his nerve. Done the simple way, the work grows far faster than the army. Double the soldiers and the cost goes up four times or more.

Where we started

Earlier this month, our first 100,000-soldier test took more than nine seconds to work out a single step. To play live, a step has to take less than a tenth of a second.

What we changed

  • Soldiers now only check the ground around them, instead of the whole battlefield.
  • Who is fighting whom is counted once per step, instead of every unit scanning every enemy soldier.
  • The work is shared across several processor cores at once.

Speed must not change the outcome. Every change is checked against a recorded battle, and that battle has to play out exactly the same, soldier for soldier.

Where we are now

The same 100,000-soldier battle now takes about a quarter of a second per step on our test machine. Even 200,000 soldiers run, at about six tenths of a second per step.

What is still in the way

  • Speed. A quarter of a second is still about three times too slow to play live. We want well under a tenth of a second, so there is room left for everything else the game does.
  • Drawing it. Showing 100,000 soldiers on screen is its own challenge, separate from working out what they do. That gets its own post.

We will keep posting real numbers here, including the ones that are not good yet. If you want to follow along, join the Herald below.

Your banner is waiting.

Get dev updates, first looks and the first playtest invites.