Coldwave

Agentic optimization: faster, and provably the same game#

Coming next. This feature is not in frost yet. The page is written ahead so you can plan for it; until it ships, nothing here works in the frost you have.

An agent makes your game faster, and proves it did not change the game. Every run of a recorded game is exact, so "before" and "after" can be the very same steps: the only difference left to measure is the speed.

What you can do today#

The parts exist, by hand (Profiling, "Proving a change"): frost bench measures a recording, you change the game, frost test says whether it still plays the same run to the same checksum, and frost bench again says whether it is faster. An agent can do the same over the protocol.

What is being built#

  • An exact A/B on one recording. Play the same recorded steps on two builds, or two settings, and compare them frame by frame. There is no gameplay noise to average away: the world is the same at every step, so any difference is the engine's or the machine's.
  • A performance bisect. When a game got slower, replay its one recording across the commits between and name the commit that did it.
  • "Optimize without changing the game". A change is kept only when the run's checksum is identical and its pictures are the same within a bound. Faster and different is refused; faster and identical is the only answer accepted.
  • The optimizer loop. Over the protocol and MCP, an agent:
    1. profiles the recording and ranks the costs (the profiler);
    2. proposes one change: fewer details far away, things not drawn when out of view, batching, smaller textures, cheaper shadow or edge settings, or a script's hot loop;
    3. applies it on a branch of its own;
    4. replays the recording;
    5. keeps it only if the checksum is identical, the pictures match, and the time went down beyond noise, then tries the next.
  • Budgets per scene and per device, and on phones a battery and heat budget too, so "faster" can mean "cooler" there.

What it will not do#

  • Change what the game does. The checksum decides, not the agent.
  • Trust one fast run: a time counts only beyond the spread of several runs on an idle machine.
  • Apply anything to your game without you: its changes arrive as a branch you review.