seriesoftubes/src/game/96-map
Antoine 10ef838e87
WebGL map: free what the card holds when it is given up for good
Given up while its context still lived (memory refused, a setup failing half-way), the card kept the atlas (64 MB at
4096 px), the tubes' points and the rest while the 2D map began painting its own pictures. glKill() now deletes the
biggest and lets the context go (WEBGL_lose_context, where the browser has it), unless the browser already lost it;
glInit() keeps the context from the start so a failed setup is let go too, and the loss event of a context let go on
purpose does not give the card up a second time. Always 2D still keeps the card for later.
2026-11-04 23:07:25 +01:00
..
10-canvas.js Settings: one Diagnostic info readout for the screen, the map's drawing and its speed 2026-11-04 22:37:15 +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 Settings: one Diagnostic info readout for the screen, the map's drawing and its speed 2026-11-04 22:37:15 +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: free what the card holds when it is given up for good 2026-11-04 23:07:25 +01:00
57-webgl-background.js WebGL map: fill overlapping coastlines as land, as the 2D map does 2026-11-04 23:04:48 +01:00
58-webgl-links.js WebGL map: give the card up for 2D when it runs out of memory without saying so 2026-11-04 22:37:15 +01:00
59-gl-sprites.js WebGL map: give the card up for 2D when it refuses a picture without saying so 2026-11-04 23:06:11 +01:00
60-draw.js WebGL map: keep the pictures' keys, the waves and the clouds out of the garbage 2026-11-04 22:37:14 +01:00
70-world-layer.js 2D map: keep the land picture on the graphics card in Firefox on a computer 2026-11-04 22:37:15 +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 the pictures' keys, the waves and the clouds out of the garbage 2026-11-04 22:37:14 +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 WebGL map: keep the cities' pictures while the zoom moves, paint them sharp once it rests 2026-11-04 22:37:13 +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-diagnostics.js Settings: one Diagnostic info readout for the screen, the map's drawing and its speed 2026-11-04 22:37:15 +01:00