seriesoftubes/src/game/96-map
Antoine 39941c257e
WebGL map: keep the 2D map where WebGL is drawn by the processor
With the perf benchmark now waiting for the surface the map was drawn on,
headless Chromium showed what WebGL costs without a graphics card: its
SwiftShader renderer spends about 8 µs per instance, so the coastlines alone
(29k segments, twice) took about 480 ms and a big map 1.4 s a frame, where the
2D canvas takes 46 ms. Players get the same with a blocked driver, a virtual
machine or Mesa's llvmpipe. glInit() now reads the renderer first and keeps
the 2D map on SwiftShader, llvmpipe, softpipe, lavapipe, WARP or any
"software" renderer; GLX.soft lets the GPU benchmark measure them anyway.
2026-11-04 22:37:13 +01:00
..
10-canvas.js Draw the map with WebGL2 by default, with the 2D canvas as fallback 2026-11-04 22:37:12 +01:00
20-land-and-clouds.js Faster routing and map: finished flows leave the rank loop, flows keep their exit table, lazy exit labels, off-screen links culled by box 2026-11-01 13:51:25 +01:00
30-settings.js Draw the map with WebGL2 by default, with the 2D canvas as fallback 2026-11-04 22:37:12 +01:00
40-level-of-detail.js Split the game page into partials under src/, assembled into one index.html at build 2026-10-27 10:05:56 +01:00
50-link-geometry.js Draw the map with WebGL2 by default, with the 2D canvas as fallback 2026-11-04 22:37:12 +01:00
55-link-look.js Draw the map with WebGL2 by default, with the 2D canvas as fallback 2026-11-04 22:37:12 +01:00
56-webgl.js WebGL map: keep the 2D map where WebGL is drawn by the processor 2026-11-04 22:37:13 +01:00
57-webgl-background.js Draw the map with WebGL2 by default, with the 2D canvas as fallback 2026-11-04 22:37:12 +01:00
58-webgl-links.js WebGL map: keep every sprite, the attack ring, an empty title map and a 2D fallback 2026-11-04 22:37:12 +01:00
59-gl-sprites.js WebGL map: keep every sprite, the attack ring, an empty title map and a 2D fallback 2026-11-04 22:37:12 +01:00
60-draw.js WebGL map: keep every sprite, the attack ring, an empty title map and a 2D fallback 2026-11-04 22:37:12 +01:00
70-world-layer.js Draw the map with WebGL2 by default, with the 2D canvas as fallback 2026-11-04 22:37:12 +01:00
75-city-size.js Map: cities show their size, and crowded small ones step back to a dot 2026-10-31 11:36:48 +01:00
80-cities.js WebGL map: keep every sprite, the attack ring, an empty title map and a 2D fallback 2026-11-04 22:37:12 +01:00
85-puzzle-cities.js Puzzles on phones: three goals in plain words with Show me, the problem marked on the map, a sheet that starts small, and a quieter map 2026-11-04 21:48:21 +01:00
87-chaos-monkey.js Badges: Met the Backhoe becomes Met the Chaos Monkey 2026-10-30 11:44:22 +01:00
88-cable-ships.js Draw the map with WebGL2 by default, with the 2D canvas as fallback 2026-11-04 22:37:12 +01:00
90-input.js Zoom in twice as far; ships at anchor keep clear of their port 2026-11-04 11:54:31 +00:00
95-clicks.js Draw the map with WebGL2 by default, with the 2D canvas as fallback 2026-11-04 22:37:12 +01:00
97-fps-meter.js Draw the map with WebGL2 by default, with the 2D canvas as fallback 2026-11-04 22:37:12 +01:00