r/factorio•
bubba-yo

A PSA on in-game measurements and UPS

Discussion

I want to raise this issue because it's foundational to discussions around base performance and it feels like the community is drifting away from something which is key to how Factorio works - and that is when the game says something happens in a period of time, did it actually happen in that period of time? Specifically when is SPM what it says it is?

One of the harder problems of any realtime simulation is how to handle the problem of when the computational cost of a unit of computation exceeds the time allotted to do the computation. There are two main approaches in computer games:

  1. You combine multiple allotted time units and put a linear scale on the computation to approximate what you would get if you could compute faster. If it's a racing game and the car would travel ~ 10 pixels per frame and you can't compute quickly enough, you take two frames, calculate where the car would show up after 2 frames and simply stutter the graphics with the car moving 20 pixels every other frame. This is done when the in-game simulation needs to be in sync with the time the player experiences. If you are trying to time leading a target in Horizon or Skryim, you can't change the simulation speed because it will throw off the players timing. As such, the game enforces the internal timing of the game to match the external timing the player experiences. It will skip frames if needed, but it will do everything it can to ensure that the target you are trying to hit is actually in the location that you expect it will be based on timing. It might look bad, but you'll make the shot. Most first person games work like this and nearly all online game work like this because no players computer can know how fast or slow some other players computer is running, but they can all agree that 1 second = 1 second for all players. So if your network hiccups, you find the other player coming out of nowhere and killing you because it skipped all the frames where you might have seem them coming. Nothing you can do to code around that problem. It's just how the game has to work.

  2. The other approach is what Factorio does. It completes the calculation no matter how long it takes and it simply slows the game down. Factorio is a deterministic game, so it can't just skip frames, it has to complete the calculation. This is why in Factorio if in a multiplayer game a client can't compute the factory as fast as the server, it has to drop the player, because the player can't get out of sync with the server. This is unlike almost all multiplayer games. Most will let you trundle through dropping frames and getting sporadic updates, but the server doesn't constantly send the state of the game to the client, it only sends the changes, and it's up to each players computer to do all of the computation for the factory locally (this would also lead to rampant cheating in most games). If it can't keep up with the server, it has to get dropped because the players can't get out of sync with each other and the game has no mechanism to keep the entire factory in sync - not that any of us would have the bandwidth to take that large of an update at the rate needed.

Specifically, Factorio operates by performing a simulation loop every 16.6ms, or 60 times per second, ideally giving us a 60 FPS game. In debug you can increase this, but normally it's 60 times per second. The way the internal clock of the game works is that if it can do a full simulation in 1ms, say at the start of the game, it'll then sleep for 15.6ms, doing nothing, then output to the screen all of the change - the new position of the player, of inserters, items on belts, and so on. As the factory grows, the game takes more of that 16.6ms to do the simulation and spends less time sleeping. In the vast majority of games the simulation always completes in 16.6ms and always sleeps a little bit.

So when the game says you made 10,000 iron plate in a minute or consumed 20,000 red science per minute, the game doesn't really mean a minute. It really means in 3600 simulations - 60 per second for 60 seconds. It just assumes that it was able to do those 3600 simulations in a minute and calls it a minute because that's almost always correct. When it's not correct is when you build a base large enough that it can't do 3600 simulations in a minute. And you can tell you're in this territory if you hit F4 and turn on 'show-fps' and it'll show FPS/UPS in the corner of your screen. If you are running at 60 UPS, then a minute is a minute. If you are running at 50 UPS, then the game is taking 1.2 minutes of your time to do a minute of calculations. At 30 UPS the game is taking 2 minutes of your time to a minute of calculations. Note, the game still says it made 10,000 plate in a minute, even if your stopwatch said it was 2 minutes. Again, to the game a 'minute' is 3600 simulations, which is most of the time a minute, but for large enough bases isn't a minute.

So if you say you have a 10,000 science per minute base, what does that mean? Specifically what does a 'minute' mean? The game is telling you it consumed 10,000 science, but it really was only a minute if the game is running at 60 UPS - when it can do 3600 simulations in a minute. If the game is running at 30 UPS, the game will still say it did '10,000 science per minute', but it took 2 minutes to do it. Is that 10,000 science per minute, or is it 5,000 science per minute? The problem is that if we accept it as 10,000 science per minute, why not just copy and paste that base down again and say that it's a 20,000 science per minute base running at 15 UPS. Or a 300,000 science per minute base running at 1 UPS, or an 18 million science per minute base running at 1 update per minute. The game will run that slow if it has to, but have you made an 18 million SPM base if it takes 60 hours to calculate 1 'minute's worth of science? Or have you made a 10,000 science per minute base?

Historically, base measurements were always made at 60 UPS so that a claim of x SPM meant x SPM. An in-game reported minute was actually a minute. Under 1.1 the most optimized factories were around 40K SPM, the most science a player could get keeping the game at 60 UPS. When Clustorio shot for 1M SPM under 1.1, it was with each instance running at 60 UPS. It wasn't hard to design factory instances that could do more but at 30 UPS, that was quite easy in fact, but the measurement was meaningless because a 'minute' didn't mean a minute. And so, every instance had to run at 60 UPS. That's where the challenge lay - getting as much result out of a given computational budget - finding the optimizations.

Go check out abucnasty or stupidfathobbits megabases and you will see, right out of the gate that they run at 60 UPS and specify that they are running at 60 UPS because without that, they could keep building and claim any SPM number they want. The only way their 2M SPM or 4M SPM claims make any sense whatsoever is by making it clear that an in-game minute is actually a minute, by running the base at 60 UPS. Without that constraint, their claim doesn't mean anything. So if players want to claim a 100K eSPM base or whatever, regardless of whether you want to include promethium in that or not, regardless of what research you are measuring that against, if that's not the measure at 60 UPS, then it doesn't actually say anything because the in game 'minute' isn't really a minute. It's something else, and nobody knows what that something else is. There's really no way to evaluate the measurement.

This isn't to take away from anyone's base or accomplishments, merely that if we want an x SPM base to mean anything, then we have to agree on what a 'minute' means, and that becomes unambiguous at 60 UPS when an in-game minute means an actual timed minute.

Posted Feb 27, 2026, 3:49 AM UTC

040

Comments aren't archived yet

This post had 40 comments on Reddit. Comments for this period haven't been loaded into the archive yet.