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

@ -1609,7 +1609,6 @@
"common.vendor_tac":"Vendor TAC",
"common.venus":"Venus",
"common.via_rs":"via RS",
"common.viewport_info":"Viewport info",
"common.vigilante":"Vigilante",
"common.walk_away":"Walk away",
"common.wave_lease":"Wave lease",
@ -3915,8 +3914,9 @@
"settings.auto_draws_the_map_with_your":"Auto draws the map with your graphics card when the browser allows it, which keeps big networks smooth. Always 2D works everywhere but is slower on big maps.",
"settings.auto_follows_your_device_s_reduce":"Auto follows your device’s reduce-motion setting. Off freezes the map: no moving packets, pulses or floating text.",
"settings.customers_and_alerts":"Customers and alerts",
"settings.diagnostic_info":"Diagnostic info",
"settings.display_and_sound":"Display and sound",
"settings.for_reporting_layout_bugs_shows_what":"For reporting layout bugs: shows what your screen tells the game.",
"settings.for_bug_reports_shows_your_screen":"For bug reports: shows in a corner your screen's size, how the map is drawn (graphics card or 2D, and why) and how fast.",
"settings.let_an_ai_agent_drive_this_game":"Let an AI agent drive this game",
"settings.map_drawing":"Map drawing",
"settings.n_min":"{n} min",