> ## Content Index
> Fetch the complete content index at: https://devlog.bujingames.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Moondog, day 12 (1 Nov): a state stream that fits, a lake, and birds that fly
- URL: https://devlog.bujingames.com/moondog-day-12-1-nov-a-state-stream-that-fits-a-lake-and-birds-that-fly/
- Published: 2026-11-02T04:00:00.000Z
- Updated: 2026-12-01T19:49:13.000Z
- Description: 56 commits, the busiest day yet. The morning went into the network, the afternoon into making the world look and feel like a game.
- Author: Jin
- Tags: moondog, devlog

56 commits, the busiest day yet. The morning went into the network, the afternoon into making the world look and feel like a game.

## The state stream was the lag

Players saw rubber-banding even when the server's pacing and round trip looked clean. The cause was in the state stream. Every broadcast carried all \~97 entities as \~26 KB of JSON, 30 times a second, sent reliably. ENet split each one into about 19 packets, and one lost piece held every later state until it was resent. Clients froze for up to 800 ms, then caught up in a burst.

I fixed it in two passes:

- **Split the stream.** State is now unreliable-ordered on its own channel and carries only players and moving things (creatures, pets, carts). Static entities go once at login and again only when a hash of their fields changes. Combat messages get a reliable channel of their own, so they no longer queue behind inventory dumps.
- **Fit one packet.** Even then, one player's state was 3,572 bytes, over the 1,392-byte MTU. Rows are now positional arrays. Positions are rounded to the millimetre for the player and the centimetre for everything else. Names and looks moved out of the 30 Hz stream into their own reliable message. Each client only gets what is within 310 m: a longbow's war-arrow reach plus 10 m. It now comes to 724–776 bytes for the whole current world.

A 93-second session afterwards had no state older than 210 ms, down from 130 moments of being more than a metre out.

I found a second problem while I was there: every rabbit spawn queued a *full world reload*. So did deaths, looting, taming and logins. That's every item, recipe and collision body rebuilt several times a minute during ordinary play. Now only GM content edits reload, and a check fails the build if anything else calls it.

## Every window, redone

The UI got a full pass. Every window can be dragged by its title and has a solid background. The inventory got gold, quality badges and sorting. The character, loot, cart, NPC, pet, quest and refining windows were all rebuilt around what you actually need to see. Loot shows up in chat ("You receive 2x Flint."), and a vendor that won't buy something now tells you why, rather than the click silently doing nothing.

## Models everywhere

Placeholder primitives gave way to Blender models: crafting stations, a horse cart, the sword and bow, gathering nodes, and animated wolves, bears, rabbits, geese and horses that bite, flinch and die on screen. Anyxa got a body, a red mohawk and studded leathers, plus a bow-top vardo parked behind her. There's also a first-person body under the camera, and other players wear it too.

## Birds, karma and slimes

Geese fly now. They startle when you get close, circle and land at the far end of their range, and only arrows reach them in the air. Tawny owls come out at night and crows by day. Killing some creatures costs hidden karma: it never reaches the client, but it is logged. Slimes hop around near Anyxa and drop Goo.

## A lake and a boat

The bowl south of the village is filled with water now. You can swim and dive in it, with a breath bar that grows with Sturdiness and a new Diving skill. You can build a clinker rowing boat at the Boat Stocks from riven oak boards, iron rivets, tarred moss and pine oars. There's fishing too, and campfires to cook the catch on.

## Bots

Two kinds of test players arrived. Headless load bots walk star-shaped loops around spawn while I sample the server's CPU and memory. Stevedave is a full gameplay bot that hunts, loots, gathers, crafts and sells to Anyxa for hours. He turned up a real bug straight away: a teleport left the server's physics body behind, and it wrote its old position back on the next tick.