Settings: one Diagnostic info readout for the screen, the map's drawing and its speed

Settings › Viewport info is now Diagnostic info, and the frame meter of the WebGL work joins it: one readout in a
corner instead of two, for bug reports. It shows:
- what the screen tells the game, as before (sizes, visual viewport, safe areas, standalone, the tab bar);
- what draws the map: WebGL2 and the graphics card's name, or 2D and why (Always 2D, a puzzle, no WebGL2, a
  processor pretending to be a card, a lost context, a card out of memory: glKill() keeps the reason);
- how fast: frames per second, the 95th percentile and slowest frame, draw()'s mean time, the speed and zoom, and on
  the card its segments and packets.
?vp and ?fps open it, ?novp and ?nofps close it, five taps on the date toggle it, and a device that had the frame
meter on keeps it. Its text stays technical and in English: it is pasted into reports. On a 360 px phone it wraps
inside the screen and never takes a tap. The setting's name and description are translated.

tests/diagnostic-info.test.js: the setting, the readout's parts, each reason for 2D, the frame figures, the address
flags and the old setting, the taps, and the phone layout.
This commit is contained in:
Antoine 2026-11-04 19:21:23 +01:00
parent 52c8aaffd6
commit cdc7c6d1eb
No known key found for this signature in database
GPG key ID: 728FF1CE15732B05
15 changed files with 160 additions and 38 deletions

View file

@ -1608,7 +1608,6 @@
"common.vendor_tac":"TAC del fabricante",
"common.venus":"Venus",
"common.via_rs":"vía RS",
"common.viewport_info":"Información del viewport",
"common.vigilante":"Justiciero",
"common.walk_away":"Marcharse",
"common.wave_lease":"Alquiler de onda",
@ -3914,8 +3913,9 @@
"settings.auto_draws_the_map_with_your":"Auto dibuja el mapa con tu tarjeta gráfica cuando el navegador lo permite, y así las redes grandes siguen fluidas. Siempre 2D funciona en todas partes, pero va más lento en mapas grandes.",
"settings.auto_follows_your_device_s_reduce":"Auto sigue el ajuste de reducir movimiento de tu dispositivo. Desactivado congela el mapa: sin paquetes en movimiento, pulsos ni texto flotante.",
"settings.customers_and_alerts":"Clientes y alertas",
"settings.diagnostic_info":"Información de diagnóstico",
"settings.display_and_sound":"Pantalla y sonido",
"settings.for_reporting_layout_bugs_shows_what":"Para informar de fallos de diseño: muestra lo que tu pantalla le dice al juego.",
"settings.for_bug_reports_shows_your_screen":"Para informar de fallos: muestra en una esquina el tamaño de tu pantalla, cómo se dibuja el mapa (tarjeta gráfica o 2D, y por qué) y a qué velocidad.",
"settings.let_an_ai_agent_drive_this_game":"Deja que un agente de IA juegue",
"settings.map_drawing":"Dibujo del mapa",
"settings.n_min":"{n} min",