Three Clocks, One World: the Time Problem in Simulation Games

Seven orders of magnitude lie between a human lifetime and the life of a climate. No game has solved it. Each one pushed it aside differently, and the waivers are instructive.

Three Clocks, One World: the Time Problem in Simulation GamesArtificially generated
Artificially generatedArtificially generatedArticle 50 of the AI Act requires artificially generated image, audio and video content to be marked as such, detectably and machine-readably. The symbol is the European Commission's official base icon. Using it is voluntary, the marking duty is not.Machine-generated: Text · Image. With human direction.McGrinsey Living Intelligence SystemsMcGrinsey Living Intelligence SystemsLI: Living intelligence of every kind. McGrinsey combines conventional intelligence and novel intelligence into living intelligence systems. These symbiotic systems of machine and human intelligence work together to supply the finest distillates of insight, for every intelligence.

Build a game in which a society grows over a thousand years. Let the people in it walk around. Then look at how long one of them needs for a hundred meters.

For us it was several years. A creature covers a fraction of a tile per simulation step, four steps make a year, and on the scale of the map a tile measures maybe a kilometer. A person walks that in a morning. Whoever watches sees slow motion that is at the same time a time lapse.

This is not a bug in our code. It is the central unsolved problem of every game that shows long stretches of time. And it pays to sort the solutions, because every one of them is a waiver.

Three clocks, seven orders of magnitude

A society runs on three time scales at once:

The earth changes over millennia. Climate, soil, species.
A civilization changes over decades to centuries. Eras, technology, population.
A single person lives in hours and days. Eating, walking, talking, having a child.

Seven orders of magnitude lie between the fastest and the slowest scale. That is roughly the ratio of one second to four months.

A game that wants to show all three shows them on the same clock. And then none of them fits.

How the others push it aside

Civilization: no movement

A turn is a year or more, and a unit moves once in that turn, no matter how far. Movement is not a process but a jump. The price: no simultaneity, nothing you can watch. The gain: the year is always right.

The real invention is in the staggering. Early in the game a turn is 50 years, late in the game it is one year. The clock slows down while the world speeds up. That is not realism, that is drama.

The Settlers and Anno: no year

They have none at all. The smallest unit is a carrier's trip, bringing a plank from A to B. Everything you see runs in real time and is consistent in itself.

The price: there is no history. Nobody ages, nobody dies, there are no eras that come out of time itself. The game plays in an eternal now.

Dwarf Fortress: two clocks, and it says so

The most honest solution. In world generation, centuries pass in minutes, civilizations rise and fall, a whole history is rolled. Afterwards, in the fortress, the clock runs in days and you watch every dwarf walk.

The switch is a break, but a visible one. Nobody claims that both are the same clock.

The Sims: no history

Knows only minutes. A Sim ages through life stages, but the world stands still: no progress, no eras, no generations that inherit anything. Consistent: whoever wants to show the smallest scale in full detail has to give up the large one.

Populous: say nothing at all

Shows real movement in real time and simply never names a year. The most elegant dodge of them all: what you never name cannot contradict itself.

And three more patterns

SimCity counts years but never lets citizens age. It works because you never follow a single one. As soon as you could, it would fall apart.

Crusader Kings counts days and lets people age, but gives up visible movement at small scale: an army is an arrow, not a crowd of people.

RimWorld counts days AND shows every colonist, but only gets through years instead of centuries.

The pattern is always the same: you get two of the three scales. Never all three.

What it costs us

The question that comes before every solution is not creative but arithmetic: what is the smallest unit of time you want to show at all?

Today we count in seasons, four steps per year. If we went down to hours, it would be 8,760, so a factor of 2,190. With 5,000 simulated creatures, 25 milliseconds per year would turn into about 14 seconds. A century would then take a quarter of an hour.

So whoever wants a finer clock does not buy it with elegance but with compute. And a lot of it.

The way we will probably go

Two clocks, like Dwarf Fortress, but without the break: a slow world clock in seasons, and when you zoom into a village, a second, fast clock in days that only covers the visible area.

It is the same idea that also carries scaling: the cost is per observed resolution, not per world. A simulation only has to be fine where someone is looking.

The price would be that the two scales no longer tell exactly the same truth. That would have to be stated openly instead of hidden, the way Dwarf Fortress does it.

And one very concrete blocker

It is not only about design. In our core a simulation step is not interruptible: it has to run all the way through before anything else can happen. As long as that is so, there can be no second, faster clock, because it would have to run between two world steps.

That is the unspectacular truth behind the big question. Before you philosophize about time scales, you have to make a loop divisible.


Written while working on JIJI BAMBAM, version 0.75.0. The compute figures come from our own measurements, the take on the games from playing them. You can run the simulation yourself.