Stormworks Mod Loader / Mods / Performance Mod
Performance Mod
Stormworks does nearly all of its heavy work on about four threads, so in a busy world one thread becomes the limit while most of your CPU sits idle. This mod spreads each tick across the rest of it.
- Latest version
- 0.27.0
- Who installs it
- Only you. It changes your own game, so other players don’t need it and you can join anyone.
- Dedicated servers
- Runs on servers set up with SWML 4.8.0 or later.
- After adding it
- On straight away.
- In the SWML window
- Listed as Physics Fixes.
- Source
- github.com/kiVts/physics_fixes
What it does
A single game tick is split across about 27 worker threads, up to six for each major part:
- Physics: the broadphase, collision checks and the constraint solver, plus character contacts, buoyancy and drag.
- Vehicle logic: each vehicle’s components, engines, sensors and microcontrollers, including Lua scripts. Vehicles joined by connectors, docks or ropes stay together on one thread.
- Render preparation: building the frame’s draw data, and particles such as smoke, spray and trails.
- Hull forces: air and water forces and water rays.
It also speeds up the sound mixer, radar messages and vehicle saving, and lets the game sleep between ticks instead of keeping a CPU core at 100%.
How much faster depends on the world. A world with many active vehicles gains the most; a small single-player build gains little, because there wasn’t much work to spread.
Settings
Change these on the mod’s Settings tab in the SWML window; on a dedicated server, in swml\config\physics_fixes.ini. The value shown is the default. Most changes apply the next time the game starts.
- Multithread vehicle logic
[multithreading] vehicle_logic=1 - Different vehicles’ logic on several threads. 0 = the game’s own loop.
- Multithread Lua
[multithreading] lua=1 - Microcontroller Lua scripts on several threads. Each script still runs on one thread at a time. Needs vehicle logic on.
- Multithread physics
[multithreading] physics=1 - Collisions, the solver, buoyancy and drag.
- Multithread rendering
[multithreading] rendering=1 - Render preparation and particles.
- Multithread radio vehicles
[multithreading] radio=0 - Vehicles with radio antennas on several threads too. Off by default.
- Sleep instead of busy-waiting
[cpu] update_loop_sleep=1 - Less CPU use and heat between ticks, same timing.
- Simplify other players’ sensors
[puppets] cull_ghosts=1 - Less physics work for other players and NPCs. Set it to 0 if other players look stuck in a falling animation.
Install
- Install SWML if you haven’t: see Install.
- Download the zip from the releases page.
- Add it: click Add Mods… in the SWML window and pick the zip.
- Start Stormworks from Steam.
Works well with
- Network Fixes
- Sends each player data at the rate their connection actually receives, puts game updates ahead of vehicle and mod downloads, and recovers lost packets without freezing.
- Fast Spawn
- Shortens the “Spawning…” screen when you join a multiplayer game or respawn, loads vehicles in parallel, and opens big multi-body vehicles in the workbench in a fraction of the time.
- No Crash Uploads
- Stops the game uploading crash reports. With mods loaded, a crash is usually the mod’s fault, and the developers shouldn’t get those reports.