Part 3 of #11601. Done: a fixture builds 2,000 nodes; a browser or DOM-free test measures the render cost of one pan step (or the server's layout time) and fails above a stated budget (say 16 ms per step, 150 ms first paint server side); the number is printed in the test name. If the budget fails today, cull off-screen nodes in the client.
Files: src/web/map_snapshot.ts, map_read.ts, map client script, test/map-scale.test.ts.
Risks: keep the existing map cache keys (map_keys.ts) valid.
Part 3 of #11601. Done: a fixture builds 2,000 nodes; a browser or DOM-free test measures the render cost of one pan step (or the server's layout time) and fails above a stated budget (say 16 ms per step, 150 ms first paint server side); the number is printed in the test name. If the budget fails today, cull off-screen nodes in the client. Files: src/web/map_snapshot.ts, map_read.ts, map client script, test/map-scale.test.ts. Risks: keep the existing map cache keys (map_keys.ts) valid.