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

@ -1610,7 +1610,6 @@
"common.vendor_tac":"Hersteller-TAC",
"common.venus":"Venus",
"common.via_rs":"über RS",
"common.viewport_info":"Ansichtsinfo",
"common.vigilante":"Selbstjustiz",
"common.walk_away":"Aussteigen",
"common.wave_lease":"Wave-Miete",
@ -3916,8 +3915,9 @@
"settings.auto_draws_the_map_with_your":"Auto zeichnet die Karte mit deiner Grafikkarte, wenn der Browser es erlaubt, damit auch große Netze flüssig bleiben. Immer 2D läuft überall, ist auf großen Karten aber langsamer.",
"settings.auto_follows_your_device_s_reduce":"Auto folgt der Einstellung „Bewegung reduzieren“ deines Geräts. Aus friert die Karte ein: keine wandernden Pakete, kein Pulsieren, kein schwebender Text.",
"settings.customers_and_alerts":"Kunden und Warnungen",
"settings.diagnostic_info":"Diagnoseinfos",
"settings.display_and_sound":"Anzeige und Ton",
"settings.for_reporting_layout_bugs_shows_what":"Zum Melden von Layout-Fehlern: zeigt, was dein Bildschirm dem Spiel mitteilt.",
"settings.for_bug_reports_shows_your_screen":"Für Fehlerberichte: zeigt in einer Ecke die Größe deines Bildschirms, wie die Karte gezeichnet wird (Grafikkarte oder 2D, und warum) und wie schnell.",
"settings.let_an_ai_agent_drive_this_game":"Eine KI soll dieses Spiel spielen",
"settings.map_drawing":"Kartendarstellung",
"settings.n_min":"{n} Min.",

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",

View file

@ -1608,7 +1608,6 @@
"common.vendor_tac":"TAC du constructeur",
"common.venus":"Vénus",
"common.via_rs":"via RS",
"common.viewport_info":"Infos viewport",
"common.vigilante":"Justicier",
"common.walk_away":"Laisser tomber",
"common.wave_lease":"Location de longueur d’onde",
@ -3914,8 +3913,9 @@
"settings.auto_draws_the_map_with_your":"Auto dessine la carte avec ta carte graphique quand le navigateur le permet, ce qui garde les grands réseaux fluides. Toujours en 2D marche partout mais rame sur les grandes cartes.",
"settings.auto_follows_your_device_s_reduce":"Auto suit le réglage « réduire les animations » de ton appareil. Inactif fige la carte : plus de paquets en mouvement, de pulsations ni de texte flottant.",
"settings.customers_and_alerts":"Clients et alertes",
"settings.diagnostic_info":"Infos de diagnostic",
"settings.display_and_sound":"Affichage et son",
"settings.for_reporting_layout_bugs_shows_what":"Pour signaler des bugs de mise en page : montre ce que ton écran dit au jeu.",
"settings.for_bug_reports_shows_your_screen":"Pour signaler un bug : affiche dans un coin la taille de ton écran, comment la carte est dessinée (carte graphique ou 2D, et pourquoi) et à quelle vitesse.",
"settings.let_an_ai_agent_drive_this_game":"Laisser un agent IA jouer",
"settings.map_drawing":"Dessin de la carte",
"settings.n_min":"{n} min",

View file

@ -1608,7 +1608,6 @@
"common.vendor_tac":"TAC del vendor",
"common.venus":"Venere",
"common.via_rs":"via RS",
"common.viewport_info":"Info viewport",
"common.vigilante":"Giustiziere",
"common.walk_away":"Lascia perdere",
"common.wave_lease":"Affitto della wave",
@ -3914,8 +3913,9 @@
"settings.auto_draws_the_map_with_your":"Auto disegna la mappa con la tua scheda grafica quando il browser lo consente, così anche le reti grandi restano fluide. Sempre 2D funziona ovunque ma è più lento sulle mappe grandi.",
"settings.auto_follows_your_device_s_reduce":"Auto segue l’impostazione “riduci movimento” del tuo dispositivo. Off congela la mappa: niente pacchetti in movimento, pulsazioni o testo fluttuante.",
"settings.customers_and_alerts":"Clienti e avvisi",
"settings.diagnostic_info":"Info di diagnostica",
"settings.display_and_sound":"Schermo e audio",
"settings.for_reporting_layout_bugs_shows_what":"Per segnalare bug di layout: mostra cosa lo schermo dice al gioco.",
"settings.for_bug_reports_shows_your_screen":"Per segnalare bug: mostra in un angolo le dimensioni dello schermo, come viene disegnata la mappa (scheda grafica o 2D, e perché) e a che velocità.",
"settings.let_an_ai_agent_drive_this_game":"Lascia giocare un agente IA",
"settings.map_drawing":"Disegno della mappa",
"settings.n_min":"{n} min",

View file

@ -1608,7 +1608,6 @@
"common.vendor_tac":"TAC do fabricante",
"common.venus":"Vênus",
"common.via_rs":"via RS",
"common.viewport_info":"Info do viewport",
"common.vigilante":"Justiceiro",
"common.walk_away":"Desistir",
"common.wave_lease":"Aluguel da wave",
@ -3914,8 +3913,9 @@
"settings.auto_draws_the_map_with_your":"Auto desenha o mapa com sua placa de vídeo quando o navegador permite, o que mantém redes grandes fluidas. Sempre 2D funciona em qualquer lugar, mas é mais lento em mapas grandes.",
"settings.auto_follows_your_device_s_reduce":"Auto segue a configuração de reduzir movimento do seu aparelho. Desligado congela o mapa: sem pacotes andando, pulsos ou texto flutuante.",
"settings.customers_and_alerts":"Clientes e alertas",
"settings.diagnostic_info":"Informações de diagnóstico",
"settings.display_and_sound":"Tela e som",
"settings.for_reporting_layout_bugs_shows_what":"Para reportar bugs de layout: mostra o que sua tela informa ao jogo.",
"settings.for_bug_reports_shows_your_screen":"Para reportar bugs: mostra em um canto o tamanho da sua tela, como o mapa é desenhado (placa de vídeo ou 2D, e por quê) e a que velocidade.",
"settings.let_an_ai_agent_drive_this_game":"Deixa um agente de IA jogar",
"settings.map_drawing":"Desenho do mapa",
"settings.n_min":"{n} min",