Devlog | M1

A cube, a server and 45 millisecond stalls

M1 in Play

OVERTIME is a modern-day MMO where your job is your class. Before any of that, it needed to be a cube.

The first milestone was the foundation: DOTS, separate client and server code that can never reference each other, and one cube that only moves because the server says so. Everything is server-authoritative from day one, even though both run on my machine. It's far easier to start that way than to add it later.

It worked, and it felt awful. Movement lagged and warnings about the server falling behind kept appearing. DOTS is meant to be fast, so what was going on?

The first explanation was that these were startup hitches. That was wrong, and measuring proved it. The game's own systems took well under a millisecond. The real causes were the graphics layer, with D3D12 stalling the editor for up to 45 milliseconds, and a 60 Hz server tick landing right on the frame time.

Switching to D3D11 and running the server at 30 Hz took the warnings from 112 down to 10 over 30 seconds. The player's own movement is predicted anyway, so a slower server doesn't make the game feel slower.

The lesson: measure before you believe an explanation, including a sensible-sounding one.