Stormworks 64-bit Server – Synchronized Stuttering with Repeated Wine cmd.exe Launches

OS Name/Version:

  • Host OS: Ubuntu 24.04.4 LTS (Noble Numbat)

  • Container: CubeCoders AMP Podman container

  • Container Image: cubecoders/ampbase:wine-stable

  • Wine Version: 11.0

  • Wine Package: wine-stable 11.0.0.0~trixie-1

  • CPU: AMD Ryzen 5 1400 (4 cores / 8 threads)

  • RAM: 32 GB

Product Name/Version:

  • Product: CubeCoders AMP

  • AMP Instance Version: 2.8.0.10

  • Game: Stormworks: Build and Rescue Dedicated Server (64-bit server64.exe)

  • Game Build: Stormworks Game Version: v1.15.26 (October 29, 2026)

  • Instance Name: kyram01

  • Container Name: AMP_kyram01

  • Container Image Build Date: October 26, 2026

Problem Description:

I am experiencing persistent, approximately once-per-second stuttering on my Stormworks: Build and Rescue dedicated server running through AMP on Linux using Wine 11.0.

All connected players experience the same hitching at the same time, regardless of their individual FPS or graphics settings.

The issue persists on a practically new world without significant vehicle load.

Performance Observations

  • Graphics FPS: Approximately 74

  • Client Logic FPS: Approximately 62

  • Physics FPS: Approximately 48–51

  • Server TPS: Approximately 48–51

  • Network packet loss: 0 reported in the client profiler

  • Container CPU affinity: All 8 logical CPUs available

  • Container CPU quota: Unlimited

  • CPU frequency: Approximately 3.2 GHz

Important Diagnostic Finding

Using Linux bpftrace, I discovered that Stormworks repeatedly launches the following command through Wine:

C:\windows\system32\cmd.exe /c cls

The following is actual captured output:

86018096 ms | PID 4107146 | wine-preloader ... C:\windows\system32\cmd.exe /c cls
86019070 ms | PID 4107354 | wine-preloader ... C:\windows\system32\cmd.exe /c cls
86020014 ms | PID 4107449 | wine-preloader ... C:\windows\system32\cmd.exe /c cls
86020978 ms | PID 4107626 | wine-preloader ... C:\windows\system32\cmd.exe /c cls
86021929 ms | PID 4107748 | wine-preloader ... C:\windows\system32\cmd.exe /c cls
86022889 ms | PID 4107904 | wine-preloader ... C:\windows\system32\cmd.exe /c cls
86023852 ms | PID 4107951 | wine-preloader ... C:\windows\system32\cmd.exe /c cls

These launches occur approximately every 0.95–0.97 seconds in the latest capture, closely matching the frequency of the in-game hitching.

I understand that AMP previously implemented a workaround for this issue by removing:

.wine/drive_c/windows/syswow64/cmd.exe

However, the current 64-bit Stormworks dedicated server is explicitly launching:

C:\windows\system32\cmd.exe

The syswow64/cmd.exe file is already absent in my Wine prefix, while system32/cmd.exe is present.

This suggests the existing workaround may not fully address the current 64-bit executable.

I have not conclusively proven that every hitch is caused by the console-clearing subprocess, but the timing and synchronized symptoms make it a strong suspect.

Steps to reproduce:

  1. Create a Stormworks: Build and Rescue dedicated server instance using CubeCoders AMP on Linux with the wine-stable container.

  2. Start the current 64-bit Stormworks dedicated server executable (server64.exe) using Wine 11.0.

  3. Connect two players to the same server.

  4. Observe regular stuttering/freezing affecting both players simultaneously, approximately once per second.

  5. Monitor server TPS. In my environment, it fluctuates around 48–51 even after reducing physics resolution.

  6. Run the following diagnostic on the Linux host:

sudo timeout --signal=INT 15 bpftrace -e '
tracepoint:syscalls:sys_enter_execve
/comm == "server64.exe" &&
 str(args.filename) == "/opt/wine-stable/lib/wine/x86_64-unix/wine-preloader"/
{
    printf("%llu ms | PID %d | ",
        nsecs / 1000000, pid);
    join(args.argv);
}'
  1. Observe Stormworks repeatedly executing C:\windows\system32\cmd.exe /c cls through Wine, approximately every second.

Actions taken to resolve so far:

1. CPU and Container Investigation

  • Confirmed Stormworks has access to all 8 logical CPUs (0-7).

  • Confirmed Podman has no CPU quota (cpu.max: max 100000).

  • Checked thread usage, including physics, vehicle, network, and ocean simulation.

  • Tested the Linux performance CPU governor instead of schedutil.

  • Verified CPU frequencies around 3.2 GHz.

  • No improvement in the periodic hitching.

2. Physics Configuration Testing

  • physics_timestep=180: Approximately 33–37 TPS.

  • physics_timestep=120: Improved to approximately 48–51 TPS.

  • physics_timestep=60: No further improvement; TPS remained around 48–51.

  • The regular hitching persisted at all three settings.

3. World and Multiplayer Testing

  • Tested on a practically new world without significant spawned vehicle load.

  • Confirmed multiple connected players experience the same hitch simultaneously.

  • Confirmed the issue persists regardless of terminal monitoring.

  • Observed multiple hitches between AMP console refreshes.

4. Wine Investigation

  • Confirmed Wine 11.0 is installed and running.

  • Confirmed the current Stormworks executable is server64.exe.

  • Confirmed the existing AMP workaround has already removed syswow64/cmd.exe.

  • Found that Stormworks instead launches system32/cmd.exe /c cls repeatedly.

  • Temporarily renamed system32/cmd.exe for testing. Performance became significantly worse, so the executable was restored.

  • Tested a COMSPEC environment variable override pointing to a nonexistent executable.

  • Verified the override reached the Stormworks process, but the repeated cmd.exe /c cls launches continued.

  • Confirmed system32/cmd.exe is present and intact.

5. Network Investigation

  • Confirmed external players can successfully connect to the server.

  • No packet loss was reported in the client profiler during the observed tests.

  • The synchronized hitching persists after connectivity was resolved.

Assistance Requested

Could you please investigate whether the current Stormworks AMP template needs an updated workaround for the 64-bit dedicated server?

Specifically:

  • Is there a supported way to disable or suppress Stormworks’ repeated cmd.exe /c cls subprocess launches without breaking Wine?

  • Does the existing syswow64/cmd.exe workaround need to be revised for the new 64-bit executable?

  • Are there recommended Wine or AMP configuration changes to eliminate these synchronized freezes?

  • Could the repeated process launches also be contributing to the server remaining around 48–51 TPS?

I would prefer a solution that only affects this Stormworks instance, as I have other AMP-managed game servers running on the same Linux host.

Thank you for your assistance.