All changelogs
Under the hood·1 min readv0.6.15

Leaner servers: the 0.6.15 efficiency pass

Smaller snapshots, compressed traffic, and maps that only work as hard as they need to, so more players fit on the same hardware.

Leaner servers: the 0.6.15 efficiency pass: rtv-mp changelog

Before adding more to the world, we spent a day making the server cheaper to run. None of this changes how the game plays. It changes how much a server has to do to keep it playing.

Less traffic

  • World snapshots leave out things that have not changed, such as NPC appearance and unchanged doors, apart from a full keyframe every second and whenever someone new starts watching.
  • Gameplay traffic is compressed with ENet’s range coder. Because of that, server and client mod versions must match exactly, and mismatched clients are turned away before they connect.

Less work

  • Maps with nobody in them keep their AI running but advance in 50 millisecond steps instead of every tick.
  • Maps are simulated in parallel, up to eight at a time.
  • Routine saves are written by a background writer instead of the simulation thread, so a save no longer causes a hitch.
  • Networking runs on its own thread, which owns the ENet host.

Housekeeping

Development-only scripts such as exporters and test harnesses are now kept out of release packages, and the server and client are checked against each other so every network call name has to match on both sides.

Changelog summary

v0.6.15
5 changed
  1. Changed

    • Slimmer periodic world snapshots and ENet compression, so servers use less bandwidth.
    • Unoccupied maps are throttled and maps are stepped in parallel.
    • Routine saves moved off the simulation thread; networking now runs on its own thread.
    • Client packets are routed through a handler table, and the server and client are checked to agree on every RPC name.
    • Development-only scripts are left out of release packages.