DevLog 14

A Cleaner Core

16 November 2026

This week we worked through the core clean-up in earnest. Ships now touch, press, scrape, and crash in a way a pilot can believe, and every development tool and test now sits outside the game.

Two weeks ago, we put hundreds of ships on one server to see where the server's time went. Much of that time was going on work a space game does not need. So we rebuilt the plan to clean up the core first: the code that every ship runs, every frame. The clean-up works through one system at a time, with the game building, running, and flying between every step. The aim is a server that can carry hundreds of ships in one zone. This week took on the largest stretch of the clean-up. We started with contact damage, because that work was taking most of the server's time. We traced why a ship held against a rock buzzed and got kicked away, and fixed the cause inside the engine's own physics. We then rebuilt how damage is read from a contact, so the game can tell a crash from a press. Next, we measured what the server really does in each frame, and found that the largest single share went on our own test tooling. That tooling came out of the game entirely, along with code that nothing used any more. In place of the scripted test pilot, non-player ships now fly by orders. With the test levels gone too, our first real zone became the level the game starts in. The clean-up also rebuilt the pilot's control profiles, so that every profile belongs wholly to the player. Alongside the clean-up, the motion dust moved from the camera onto the ship, and we started settling exactly what a ship is. The art brought new skins for the cargo containers, three new ship designs in five versions each, and concept art for a hangar entrance and a spacesuit. Earlier entries gained videos of our test runs, and the Lore Book grew.

Place Holder: non-player ships flying by orders in Rorke's Drift.


Pressing, scraping, and crashing

Last week's work on contact damage left one problem. A ship held against a rock under thrust buzzed against the rock, and every so often a bigger jolt kicked the ship away. A ship hitting a rock, rebounding a few times, and coming to rest is understandable. A permanent feedback loop is not.

Someone had to have solved crashing, scraping, and pressing before, so we looked for existing answers before building our own. We read the engine's own source first, then other physics engines, then what has been published about games such as Kerbal Space Program, iRacing, BeamNG, Elite Dangerous, and Star Citizen. Two things stood out. The engine's own destruction code judges a crash by how fast two objects were closing before contact, not by how hard the objects push once touching, and other engines and games do the same. We also found no game that damages a ship for a gentle, lasting press.

The buzz came from the order of work inside the engine's physics. Each step, the engine's physics adds the ship's own thrust to the ship's speed, and only then checks the ship's contacts. For each contact, the engine then decides whether the ship should bounce back off the surface it touches, or come to rest against that surface. A contact closing faster than a small set speed bounces, and a slower one comes to rest.

Because the thrust was added first, a ship held against a rock under thrust looked like a ship arriving at speed, every single step. That speed was always fast enough to bounce off, and never slow enough to come to rest, so the ship bounced every step. The kicks were the bigger jolts: rebounds after those bounces.

We fixed this with a method used by another physics engine, and extended it to cover turning as well. Each step, the engine decides whether a ship touching something bounces off or comes to rest against it. The engine has a hook into its contacts: a point where our code can change a contact before that decision is made. Inside that hook, we take the thrust and turning the engine has just added for that step back out of the speed the decision uses. The engine then decides on the speed the ship carried into the contact. A ship arriving fast still bounces off. A ship pressing on a rock under its own thrust comes to rest against the rock and stays there.

The second half of the fix was damage. A crash and a press can push on a ship just as hard. The difference is speed: a crashing ship arrives fast, while a pressing ship is already touching and barely moving. So after each physics step, the server measures two things for every contact a ship has. The first is how hard the contact is pushing. The second is how fast the two objects were closing at the start of that step. The push sets the size of the hit. The closing speed decides how much of that push becomes damage: a little for a slow press, and a lot for a fast crash. As the game needs a speed where a press ends and a speed where a crash begins, we have built a smooth ramp between the two. That way, a small change in speed never makes a sudden jump in damage. After its first touch, a scrape behaves like a press. The ship may be moving fast, but it is moving along the surface, not into it, so its closing speed is low. The closing speed is how the game tells a crash from a press or a scrape.

Then comes toughness. Every ship has a toughness value. Every contact, every physics step, has that value taken off its damage first, like a toll. Damage smaller than the toll does nothing at all. A ship resting against a rock, or brushing past one, takes little or no damage, while a ship that crashes still takes a lot. The same contact data can also be used to drive sparks, scraping sounds, and camera shake later on.

There was one more piece to put in place. Toughness was designed to come from what a ship is fitted with, and that fitting system is not built yet. Until now, our test ships carried no toughness at all, so every ship pressed against a rock damaged itself every physics step. To fix this, each ship's hull frame now carries a temporary base toughness of its own.

Toughness also cut the load on the server. Without it, every ship touching a rock made a damage record every physics step. Each record was packaged, sent on from the physics to the rest of the game, and applied to the ship through the engine's ability system. This takes server time. With toughness in place, the server still works out the damage for every contact, but any damage smaller than the toll is dropped there and then. If there is no damage at that step, nothing is packaged, nothing is sent on, and nothing is applied. Only contacts that do real damage, such as crashes and hard presses, go any further. In our heaviest test, with 300 ships flown into the rock field, contact damage no longer stalls the server, which was the condition we set at the start.

We proved the fix on plain cubes first, because a cube's flat faces leave nothing but the fix to make a difference. Those cube tests now run automatically at the end of every later piece of work, so a future change can't quietly break the fix. We then flew real ships, held under thrust against a large block. One case did not pass cleanly: the heavy fighter, held at low throttle, turned slowly about its nose. When we gave the heavy fighter a cube for its collision cage, the turning stopped, so the cause was the uneven cage the engine makes automatically. The heavy fighter's hand-made cage, built when the ship is rebuilt, will be the fix.

Place Holder: a ship held against a rock under thrust, sitting still.

Where the server's time goes

A game server runs at a steady rate. Ours aims for sixty frames a second, and when a frame's work is done early, the server sleeps until the next frame is due. This means that the physics frame "reports" on a regular, fixed time frame. In normal tests, our frame rates held at that target of 60 fps (frames per second), but under heavy load they fell just short of it. Part of the work we have been doing is profiling the workload so we can find out why. The heaviest test turned out to be busy for a reason we did not completely expect. About a third of every frame went on our own test tooling, not on the game. We know that our test tooling adds overhead, but we didn't expect that much. Every timing of that test had carried that tooling cost. The tooling was already due to come out, and we had already brought that forward in the schedule. That turned out to be a good call: we had chosen to remove the tooling early, before we knew how much it was costing us. Removing it gave that time back to the game. Worked out from the timing record, the server would then have time to spare, even in our heaviest test.

Now the frame times we had been measuring showed the server just keeping up, at 60 fps. This effectively hid how much real work each frame carried. This week we could measure the work and the sleep separately for the first time. This is GREAT! Wherever the server sleeps, it is actually UNDER our target time, and now we can see by how much.

We always knew the engine could spread physics across more than one of the processor's cores, known as multithreading, but we had been too busy to look into it. This week we did. By default, the engine runs a dedicated server's physics on the server's main thread, inside each frame. A launch setting lets the server spread that work across more of its cores. The engine's own notes call that setting experimental, so it has to be tested with care. It will be tested with players connected, which will also be our first measure of what each connected player costs the server. If we can use multithreading, that would be awesome. I know we need to balance safety with speed, but I always feel it's nuts to have computers with tons of processors, and have most of them running idle.

The game, and only the game

Test tools belong outside the game. They cost the server time, as the profiling above showed, and nothing built only for testing should ever be able to reach the build players get. Last week we set aside a separate development part of the code, which never goes into a release. This week every remaining development tool, automated test, and development command moved into that development part. The tests were rebuilt to fly the real game, so we are testing actual, playable zones, not test levels. Development commands now go through the engine's own system for "cheats", which exists only in development builds. These will never get built into the final, shippable build. The scripted test pilot and the crash-test course went with the tools.

The game still needed a way to fly the ships that players don't control, now that we have retired the scripted test pilot. These ships are now flown by proper non-player characters (NPCs), which follow orders. For now there are two orders: fly to a point, where close is close enough, and hold position. The server turns each order into the same controls a player uses, inside the physics step, so an NPC ship flies exactly as a player's ship does. In one test, twelve ships from random starting points and headings all reached their own destinations and came to rest. Each list of orders will say what happens when the list ends, and whoever gave the orders decides what comes next.

The test levels were removed as well. With that, the game needed a real level to use. Our first zone, Rorke's Drift, was built as a game level, and is now the level the game starts in. Currently the zone holds an asteroid field, a navigation beacon, the sky, the lights, and the motion dust. Stations, station pieces, traffic, and other points of interest are not yet placed.

Blasts changed course too. Last week's Next line promised blasts on the engine's own push. Until now, only the test course set off blasts, so once it was gone, nothing in the game used the old blast code. Rather than rebuild code nothing used, we removed it. Blasts now belong to the weapons build, where they will be built properly on the engine's own explosion push. Two decisions are already made: a blast's size comes from the data of whatever causes it, and a friendly blast pushes but does no damage.

A final tidy-up removed code that nothing used. This tidy-up also surfaced one problem that looked at first like something deep in the engine. The damage settings would not load when the game started. The cause turned out to be one missing word in six lines of settings. We proved the cause with the engine's own report before changing anything. The damage settings now load once, at the start, and stay loaded for the whole game.

Each step was reviewed against the code before the next one began. The reviews found several systems that still searched through every ship in the zone, every frame, to find ships the game already knew about. No system should ever need to walk through everything to find something. The coming steps add a register for each zone, holding every ship and object in it, so nothing has to be searched for. The game's own code is now about a third smaller than it was at the start of the month.

Controls that belong to the player

The pilot's control profiles were reworked, and are now much more fit for purpose. Each profile belongs wholly to the player, and the game never changes it. Profiles can be saved to a file, shared, and loaded back. A new action added to the game arrives in every profile unbound, with a highlight and a notice.

Motion dust, on the ship

Motion dust is the field of specks around the pilot's ship that shows speed and direction in empty space. Without motion dust, a pilot has nothing nearby to judge speed by. The dust hangs on the pilot's own hull, belongs to the ship, and fades with speed: none at a stop, and full once the ship is properly moving. The server, of course, never runs the dust, and only the pilot's own ship carries it. We have a hook that allows us to change the look of the dust motes when changing zones, in case ice looks better… or some other material.

Place Holder: the motion dust fading in as the ship gathers speed.

What a ship is

Before ships can be handed out in a zone, we need to settle exactly what a ship is. We started with a list of everything the finished game needs from its ships. The list was drawn from the goal, the design, and the decisions already made, not from the code we already have. That list is now the measure for every later step of the ship design.

Some of the design is settled. There is one ship class for every ship, player and NPC alike. The only differences are who is at the controls, what model is being used, and what mass and power are used to move it. With our flight system, we can move drones, torpedoes, fighters, freighters, frigates, and battleships without changing the systems they operate on. Every ship carries the engine's ability system, which holds the ship's stats and applies its damage. Because every ship is built the same way, we are also looking at keeping spare ships in a pool. A ship that isn't needed would be put to sleep, rather than destroyed and made fresh each time. That idea is still a proposal. A ship swap is a logout to the select screen: you pick a new ship, which is placed in a dock. When the new ship flies out, the old one is docked at the closest location. (This is a "for now" decision to prevent "alt parking", but will be revisited in testing.)

New models and concept art

Last week's cargo containers now come in twenty different skins, so the zone's traffic doesn't all look the same. Each skin swaps onto its container with a single setting.

The cargo containers in their twenty skins

The cargo containers in their twenty skins.

Three new ship designs arrived, in five versions each. Two of the designs have a ring drive standing out from the body, and one does not. Like every model so far, these are massing models: stand-ins, the base the real models are rebuilt over, and not final in any way. They are high quality enough to populate the background of a shot.

The first ring drive design

The second ring drive design

The design without a ring drive

The three new ship designs: two with a ring drive, and one without.

The concept art turned to an additional hangar entrance: a short, wide hood that sits on top of a docking deck, so some docks can take ships too large for the rim bays.

Concept art of the hangar entrance on a docking deck

Concept art of the hangar entrance on a docking deck.

For scale purposes, we originally made a plain human figure at average height, using a free character-generator add-on for Blender. The figure stands 1.66 metres tall, close to the average height worldwide, and drops into any scene as a scale reference beside a ship. It was… boring.

This prompted us to have a look at space suits and spacesuited figures for scale. Bubble helmets are banned for now (dork factor 20), but I'm sure we'll have some retro options available. I've sketched out a few options but found that when these moved to the massing stage, existing patterns kept pulling the massing models towards well-known designs if I had any similarity in my drawings. Sometimes the massing model did follow my drawings, but most of the details for the suited figures will have to be addressed in the modelling stage. Our first use is going to be for background action in some of our upcoming scenes.

Two versions of our temp suits

Two versions of our temp suits. If you look closely you can see them in the wide shot on top of the docking deck.

Moving pictures

I cut our test footage into short clips, and earlier entries now carry those clips, from the first physics tests to the collisions and the slalom. These are honest test clips, flown in test levels. What we want next is footage of ships flying in a real zone, showing the foundations of a game.

We looked at the ways we could record that footage. The simplest is for me to fly and record the screen. The engine also has a spectator view, a viewer with no ship of its own, which is already planned. The engine's replay system can record a session on the server and play it back. Whether a replay shows our networked physics correctly can only be known by testing. For trailer-quality shots, the engine can also render staged scenes offline. The advice we found agreed on the clips themselves: real gameplay, short and silent, and straight into the action, because a visitor may give a clip less than ten seconds.

The Lore Book

The Lore Book is where the game's world is written down: its history, its peoples and polities, its characters, places, and ships, and the names that tie them all together. It also holds the story, and the missions built on it. The zones draw on it for everything from the people a pilot meets to the jobs and events on offer. This week the Lore Book grew by sixteen pages drawn from the design notes. Among them are a domed football pitch, a demolition derby arena, nebulas and ion storms, Flight School, courier jobs, seasonal festivals, and a roaming trader. Twenty more pages were started for in-world terms from the glossary. The Lore Book is also busting out of its text-based crèche, so we are researching a new home for it.


Week seven delivered what we set out to do. Ships touch and crash in a way a pilot can believe, contact damage no longer weighs on the server, and every development tool and test sits outside the game.

Next: the rest of the core clean-up: mass changes on the engine's own records, a register for each zone so nothing is searched for, and rebuilds of the pilot's controls and the radar. Alongside the clean-up, the ship design moves on to how NPC ships take their orders, and how ships enter and leave a zone.

Discuss this on Discord