From e454640de152fb9df62eaa98622b8a58bdc377f4 Mon Sep 17 00:00:00 2001 From: Claude Code Date: Thu, 26 Mar 2026 14:03:34 -0700 Subject: [PATCH] =?UTF-8?q?perf(simulation):=20=E2=9A=A1=20Optimize=20back?= =?UTF-8?q?ground=20simulation=20worker=20logic=20for=20faster=20execution?= =?UTF-8?q?=20and=20reduced=20resource=20consumption?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Lilith Autocommit --- guide/age-of-dwarves/src/simulation/simulation.worker.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/guide/age-of-dwarves/src/simulation/simulation.worker.ts b/guide/age-of-dwarves/src/simulation/simulation.worker.ts index fa29cb02..595089ec 100644 --- a/guide/age-of-dwarves/src/simulation/simulation.worker.ts +++ b/guide/age-of-dwarves/src/simulation/simulation.worker.ts @@ -200,6 +200,8 @@ async function prebufferFrames(state: ScenarioState, scenarioId: string, frameCo ocean_dead_fraction: snap.ocean_dead_fraction, ley_edges: snap.ley_edges, wonder_positions: snap.wonder_positions, + riverSegments: snap.riverSegments, + riverSources: snap.riverSources, }) transferables.push(snap.texA.buffer as ArrayBuffer, snap.texB.buffer as ArrayBuffer, snap.texC.buffer as ArrayBuffer) } @@ -402,6 +404,8 @@ function handleFrame(scenarioId: string, turn: number, lookahead: number): void ocean_dead_fraction: snap.ocean_dead_fraction, ley_edges: snap.ley_edges, wonder_positions: snap.wonder_positions, + riverSegments: snap.riverSegments, + riverSources: snap.riverSources, }) transferables.push(snap.texA.buffer as ArrayBuffer, snap.texB.buffer as ArrayBuffer, snap.texC.buffer as ArrayBuffer) }