Nuclear Option dedicated server · automated multiplayer testing
What a server used with four active pilots
Four scripted test pilots joined a Linux dedicated server over the game’s normal network connection, took off in the stock Escalation mission and flew and fired guns for ten minutes. This page shows what the server used while that happened, and what the test still can’t tell you.
The newer Ryzen machine completed three four-pilot baseline runs. In their ten-minute flight windows the server averaged 0.76–0.77 CPU cores and peaked at 1.04–1.14 GiB. This describes those runs, not the minimum hardware for an hour-long battle or a larger player count. The test clients competed with the server for the same four vCPUs.
Shown with real game processes
- A Nuclear Option 0.34.1 Linux dedicated server hosted four connected pilots in stock Escalation. Every pilot taxied, took off and climbed for 3 minutes, then flew and fired short gun bursts for 10 minutes. Three independent baseline runs and one matched Spatial run passed all 50 checks each.
- During those 10 minutes the server process averaged 0.76 of one CPU core and peaked at 1.14 GiB of memory.
- The physics simulation averaged 60 steps per second. The server’s update loop averaged 55.4 per second.
- Two-pilot runs also covered rockets, ejecting in the air, taking a replacement aircraft and flying again.
Not shown yet
- How many players a production server can hold. The server and all test clients shared one small virtual machine.
- Whether the optional NOPerf Spatial plugin helps the whole server. One matched pair finished, with almost identical CPU use. Earlier attempts failed; more repeats are needed.
- Behaviour with human players or retail Steam clients.
- Sessions of an hour or more, reconnecting mid-flight, or switching missions with players in the air. Those either failed or haven’t been tested.
- A completely unmodded server. Every measured baseline also loads the BepInEx mod loader and the test bridge.
What the players actually did
The pilots weren’t people. Each one was a headless test client: a copy of the game’s dedicated-server build running without graphics, joining like an ordinary networked player over UDP. A small scripted controller flew each aircraft by sending control inputs through the game’s own control path. They are not retail Steam clients and not combat AI.
The four-pilot session
- Join. The server waits with no mission loaded. The first player to join triggers the normal stock Escalation load; all four clients then join the same game.
- Taxi, take off and climb (3 minutes). Each pilot gets a normal aircraft from the reserve, steers along the taxiway, takes off and climbs.
- Fly and fire (10 minutes). All four stay airborne. Each fires a half-second gun burst every 20 seconds.
- Server checks. The server confirmed that each player kept the original aircraft and player identity, and that gun ammunition went down through normal firing without running out (rounds left: 328, 316, 320 and 322).
During the flight the game’s unit list held between 1,008 and 1,077 entries. That count covers all kinds of mission objects. Only 10 to 12 of them were aircraft at any moment. It does not mean a thousand AI aircraft were flying.
Shorter two-pilot runs
Before the four-pilot session, two-pilot runs on the same lab covered more kinds of activity. All of them used the same game build and no performance plugin.
| What both pilots did | Result |
|---|---|
| Server start, 3-minute taxi, takeoff and flight, then 30 seconds of rocket fire | Passed in several runs. One repeat failed at 2 min 52 s when an aircraft took impact damage and broke up. |
| Fly, fire rockets, eject in the air, take a replacement aircraft and fly a second sortie | Passed (51 checks in each of two consecutive runs); original player identities kept |
| Three one-second gun bursts each, with the trigger releasing between bursts | Passed (54 checks) |
| Three sorties, including 6 minutes of gun firing, then disconnect and reconnect | Failed twice: once at a disconnect after the flying passed, once 2 min 23 s into the gun flight after missile fragments damaged a pilot |
Server CPU and memory
The figures below come from the first passing four-pilot baseline. Choose takeoff or flight to compare its CPU use, memory and update timing. The activity chart later also includes two-pilot workloads.
Average CPU use per process across the whole phase. Each tick on the bar marks one core.
- Game server
- Test clients 1–4
- Not used by these five processes
Data table: CPU cores by process
One core fully busy for the whole phase = 1.00. The lab-wide busy figure is measured separately at the machine level, so it doesn’t exactly equal the sum of the five processes.
Inside the server process
Most of the server’s CPU time is on its main thread, the single thread that runs the game loop. Two helper threads (“job workers”) take a smaller share. These thread figures come from a separate, approximate sampler outside the game.
Memory
Highest resident memory each process reached during the phase.
Data table: peak memory
How smooth the server loop was
These intervals measure time between server updates. Most fell below 25 milliseconds. The chart counts slower updates too; retail-client network latency remains untested.
Data table: frame time bands
These are Unity update intervals measured inside each process. They are not network latency as a player would feel it.
Server CPU by activity
Selected passed observation windows on this lab without performance plugins. The two short startup repeats and three completed four-pilot baselines are shown, plus the six-minute gun phase of a run that later failed at disconnect. Bars span the lowest and highest averages for each activity.
Data table: server CPU by activity
| Activity | Runs | Server cores | Whole lab busy |
|---|
With four clients the lab is much busier, so the two-pilot and four-pilot rows were measured under different contention. They aren’t a clean “cost per extra player”.
Why the lab can’t establish production capacity
The numbers above describe one test machine, not a recommendation for your server. On this lab the server process alone averaged under one core with four active pilots in this mission. Going further than that would not be honest yet.
The server and the players shared one machine
The lab is a single virtual machine with 4 vCPUs and 8 GiB on an AMD Ryzen 5 PRO 3600 host. The server and all four test clients ran inside it. The clients together used about 2.7 cores, roughly three and a half times what the server used. On a real server, players’ games run on their own computers.
The machine was crowded
During the 10-minute flight the machine was 86% busy. Some task was waiting for a free CPU 57% of the time. In two-pilot runs that wait was about 10% or less, and the server’s update loop held close to 60 per second. With four pilots it fell to 55.4. We can’t yet tell how much of that drop is extra game work and how much is the server queueing behind its own test clients.
Other limits
- Limited repeats. Three independent four-pilot baselines and one matched Spatial run have passed. The detailed figures here come from the first one. Only one complete baseline/mod pair is available; more are needed.
- Averages hide spikes. A 0.76-core average can still include short moments where the main thread was the bottleneck.
- Not stock. The “baseline” loads BepInEx and the NOTestPilot bridge. A loader-free stock server is a separate test.
- Scripted pilots. A simple circuit controller isn’t human flying or combat. Deliberate hits on targets weren’t verified.
- Different hardware gives different numbers. These results apply to this guest only.
Test setup details
| Game | Nuclear Option 0.34.1, Linux x64 dedicated server |
|---|---|
| Mod loader | BepInEx 5.4.23.3 (present in every measured baseline) |
| Test bridge | NOTestPilot bridge 0.1.0, opt-in testing adapter, never deployed to production |
| Lab | One disposable Linux guest: AMD Ryzen 5 PRO 3600 host, 4 vCPUs, 8 GiB. CPU steal under 1%. |
| Clients | Headless dedicated-build UDP clients, flown by an experimental input driver that bypasses keyboard and menu input |
| Mission | Stock Escalation, unchanged simulation settings |
| Measurements | Per-process CPU, memory and frame times from inside each game process; per-thread CPU and machine-wide pressure from an approximate external sampler |
| Tooling tests | 43 runner unit tests pass on Linux and CI; 42 pass on Windows with one POSIX-only test skipped. These test the tooling, not the game. |
Mod comparison and failures
No whole-server benefit from the optional performance plugin has been shown.
The completed pair, and earlier failures
The completed Spatial pair ran the same four-pilot script one run after the other, changing only whether NOPerf Spatial was loaded on the server. Both passed all 50 checks. Server CPU was almost identical: 0.757 cores without Spatial and 0.761 with it. Passing baselines ranged from 0.757 to 0.771 cores, so this does not show a gain.
| Ten-minute flight | Baseline | Spatial |
|---|---|---|
| Checks passed | 50 / 50 | 50 / 50 |
| Average server CPU, cores | 0.757 | 0.761 |
| Server updates per second | 56.1 | 56.4 |
| Physics steps per second | 60.0 | 60.0 |
| Server frames over 50 ms | 3 | 4 |
| Server frames over 100 ms | 0 | 0 |
| Peak server memory | 1.13 GiB | 1.13 GiB |
The plugin’s actual server patch was confirmed active. One successful pair does not establish long-session stability or remove the failed attempts from the record.
| Server setup | Outcome |
|---|---|
| Baseline: BepInEx + test bridge | Passed all 50 checks; full 10-minute flight |
| Same + NOPerf Spatial 0.1.0 | Failed after 9 min 18 s of the 10-minute flight. One client’s aircraft took impact damage at about 792 m, collided with its own parts and descended. The cause is unknown. The plugin was confirmed loaded and active. |
The earlier incomplete pair can’t show a gain or a loss. A separate short run with Spatial loaded passed 37 checks covering startup, a 3-minute flight and rockets. That shows the plugin loads and the game runs with it. It isn’t a performance comparison.
Partial numbers from the pair (not a comparison)
Shown for transparency only. The Spatial window is shorter and ended in a failure, there’s one run each, and both ran on a heavily contended lab. Don’t read these differences as an effect of the plugin.
| Flight window | Baseline | Spatial (failed) |
|---|---|---|
| Length measured | 599 s | 558 s |
| Server CPU, cores | 0.765 | 0.765 |
| Server updates per second | 55.4 | 55.8 |
| Physics steps per second | 60.0 | 60.0 |
| Server frames over 50 ms | 6 | 17 |
| Server frames over 100 ms | 0 | 4 |
| Server peak memory | 1.14 GiB | 1.07 GiB |
| Whole lab busy | 86% | 85% |
Where the profiler points next
In the two-client mission profile, the native physics phase averaged about 2.0 ms per simulation step. Script phases averaged about 1.1 ms for simulation, 1.2 ms for updates and 0.5 ms for late updates. Job scheduling was a larger measured method than the spatial lookup helper. Three further, shorter profiling runs completed. They separated ground-vehicle input collection from aero input and job waits, giving the next optimization attempts a measured starting point.
These are measurements with extra instrumentation, after discarding the first four diagnostic windows. The window includes takeoff and flight, and the run later failed. Method timings can overlap and include waiting; they are not pieces of a CPU pie, a capacity estimate or a measured mod gain.
Two new performance ideas checked
Reusing an aircraft velocity read: rejected. It was faster in a synthetic case where adjacent parts shared a body. The real mission recorded 1.50 million reads and no adjacent reuse. Keeping that cache would add work without helping this workload.
Visiting only due ground vehicles: experimental source available. The game already spreads some ground input work over twelve ticks. Visiting just the due indices kept the original order in 6,360 native checks. The isolated scan became about ten times cheaper, saving roughly two microseconds per loop; actual vehicle callbacks and physics still do their original work.
Two shorter, two-pilot baseline/mod pairs passed all 30 checks per run through three minutes of takeoff and three minutes of flight with guns. The mod’s patch was confirmed active. Flight CPU was lower in both mod runs, but the difference varied and mission workloads diverged. This is too little evidence to call a useful whole-server gain or memory reduction.
| Pair | Baseline | GroundInputs |
|---|---|---|
| 1 | 0.780 | 0.738 |
| 2 | 0.769 | 0.762 |
GroundInputs is disabled by default and source-only, outside the v0.1.0 download. The second binary adds a startup compatibility guard; its traversal is unchanged and its separate native checks passed. Two baseline-first pairs are not an order-balanced long-session comparison. Detailed experiment evidence.
These attempts preserve the scheduled callbacks, simulation rates and gameplay decisions. The larger measured costs include native physics and actual vehicle work; faster index bookkeeping alone cannot remove those costs.
Failures we’re keeping on record
Failed runs stay in the record. They are part of the evidence.
- A later mod run failed during mission loading. A candidate run and a later baseline without the performance plugin both failed while the fourth client loaded Escalation, before flight began. Another baseline failed during a later attempt to join. The loading problem occurs in both variants; its cause remains unresolved. A read-only trace caught a destroyed aircraft left in the client’s mission lookup just before the original error. We have identified the stale entry, but not the full sequence that leaves it there. A delayed second-client join passed a focused test; that does not resolve the intermittent fault.
- Earlier four-pilot version ran out of ammunition. One-second bursts every 20 seconds emptied every gun, so the final check failed. The script now uses half-second bursts. That’s the version that passed.
- Reconnecting while flying fails. When a client leaves mid-flight, the game hits an error while it cleans up the mission on that client. This happened in both attempts, including with the normal Quit path. Short idle join, leave and rejoin passed.
- Changing missions with players in the air fails. Rotating from Escalation to Terminal Control failed during server cleanup. The return rotation was never reached. An older, separate cleanup failure is also on record.
- Short flights can still end in a breakup. One two-pilot repeat lost an aircraft to impact damage at 2 min 52 s. A later profiling run also lost height just before the end of its ten-minute flight window. Its trace captured joint breaks at about 935 metres, followed by collisions between parts of the same aircraft. The initiating cause remains unresolved; the profiling run is a failure.
- A stop-on-request test behaved as intended. A run stopped deliberately at about 10 seconds kept its partial data, archived its logs and stopped its own game processes. It’s recorded as cancelled, not as a pass.
- An older long run has an unknown result. A three-sortie run on the previous lab was interrupted before its result could be collected. It isn’t counted.
Technical detail for these failures
- Occupied disconnect: client-side exceptions in
RadarWarning.Updateand, in another run,ThreatItem.AnimateItem/ThreatList.Updateduring mission unloading. Retail reproduction unverified. - Occupied rotation: server
Turret.ChooseTarget/Turret_OnTargetDisabledduring unit destruction; clients also loggedStatusDisplaycleanup exceptions. The older failure was in ship particle cleanup on Terminal Control. Game logic was not modified to hide either. - Three-sortie gun flight: missile blast or fragment damage reached a pilot, then own-part collisions and descent. The attacker is unknown.
- The initiating cause in the Spatial run and the two-pilot breakup is unresolved. Read-only joint and body diagnostics were emitted.
Next tests
The repeatable flight and replacement foundation is working. These are the remaining gaps before recommending a production setup.
- Repeat the pairs so differences can be compared with ordinary run-to-run variation.
- Longer sessions, tracking slow frames and whether the mission slows down as it ages.
- Larger missions with more active units, with simulation settings left unchanged.
- A fully stock server without BepInEx, kept separate from the instrumented baseline.
- Separating client load from the server. This is needed before any capacity statement is possible.
- Reconnect and mission-rotation failures, plus the unexplained aircraft breakups.
Human players, retail Steam clients and Steam authentication remain untested.