seriesoftubes/tests
Hugues a3dd1dd810 Busy maps: no link labels or fiber dots above 1,000 lines on screen
On a save with 2,700 lines on screen, Firefox spent about 95% of each
frame painting, and the dotted line on lit fiber (~160 ms) and the link
labels (~55 ms) were half of it, in a tangle where neither can be read.

draw() now counts the lines it would paint (linesOnScreen(), same box and
margin as its own culling, boxes cached on the geometry) and above
MAP_BUSY = 1000 leaves out both. They come back as soon as fewer lines
show, zooming in for instance. The selected link keeps its label.

Firefox Developer Edition headless, 1600x900 at DPR 2, player save, median
of 3x9 frames: save view 414 -> 214 ms, pan 472 -> 238, zoom 0.6 269 -> 181,
New York zoom 2 213 -> 107, selected link 412 -> 201. Under the threshold
pixels are identical (canvas SHA-1): zoom 3.2 and 6 on the player save, six
views of the big-network fixture.
2026-10-27 14:03:04 +01:00
..
fixtures Performance benchmark on a big network, posted on every PR 2026-10-26 06:39:23 +01:00
helpers Routing reference test runs on today's routing loop; perf bench reads exported saves 2026-10-26 08:40:20 +01:00
build.test.js Translations keyed by labels instead of English text 2026-10-27 11:05:09 +01:00
game.test.js The broadband panel shows each city's real price per gigabit and real revenue, not the base rate 2026-10-27 11:56:55 +10:00
harness.js Ship short ids instead of labels; checker, tests and docs for labels 2026-10-27 11:27:11 +01:00
i18n.test.js Ship short ids instead of labels; checker, tests and docs for labels 2026-10-27 11:27:11 +01:00
inbox.test.js Translations keyed by labels instead of English text 2026-10-27 11:05:09 +01:00
issues.test.js City density rule: retire 15 crowded Brazilian cities from new games 2026-10-27 10:09:12 +01:00
latency.test.js Far-away transit backhaul is slow, and slow is bad service 2026-10-26 23:29:49 +01:00
levels.test.js Router trade-ins, one swap a day, and speed-based requirements (#82) 2026-10-25 21:49:51 +01:00
modes.test.js RouteScript: AI button, help page and ready-made scripts 2026-10-26 21:44:59 +01:00
pages.test.js Ship short ids instead of labels; checker, tests and docs for labels 2026-10-27 11:27:11 +01:00
peering.test.js Add Crowdflare Rackstar embedded caches 2026-10-26 20:33:20 -05:00
perf.test.js Split the game page into partials under src/, assembled into one index.html at build 2026-10-27 10:05:56 +01:00
persist.test.js Remember each used customer name once 2026-10-27 13:45:06 +01:00
regions.test.js City density rule: retire 15 crowded Brazilian cities from new games 2026-10-27 10:09:12 +01:00
routing-reference.test.js Routing reference test runs on today's routing loop; perf bench reads exported saves 2026-10-26 08:40:20 +01:00
sea-routing.test.js Sea routing: Suez and Panama crossings, great circles, fastest design back on par 2026-10-26 22:13:16 +01:00
services.test.js Stack a carrier's alien waves on one fiber into one contract 2026-10-26 23:48:34 +01:00
speed.test.js Busy maps: no link labels or fiber dots above 1,000 lines on screen 2026-10-27 14:03:04 +01:00
subsea-upgrade-timing.test.js Fix subsea upgrade scheduling and add one-click construction rush 2026-10-26 22:47:13 +00:00
supply.test.js Supply chain: hardware prices drift up, shortages come and go, spares and price locks 2026-10-27 09:25:47 +01:00