feat: FusionHUD replaces the session HUD, with MangoHud's readings (#1743)

The session HUD is FusionHUD (Bannerlator's HUD) with every reading taken from
the same source, and worked out the same way, as the MangoHud build that runs
Steam's performance overlay in a DroidDeck session.

- gamescope patch 0125 (gamescope-3.16.29-p19) shares the frame times that
  mangoapp reads (one per signalled commit of connector 0) in a ring named by
  DROIDDECK_HUD_FRAMES; the app reads it once per display frame and counts the
  compositor's frames when gamescope sends none.
- MangoHud's rules: FPS over periods of at least 500 ms, frame time = 1000/FPS,
  200-frame graph on a fixed 0-50 ms scale; CPU, GPU, temperatures, RAM, swap,
  VRAM and battery from MangoHud's sources. Zones 22/26/28 are typed as GPU and
  DDR sensors, so Steam's overlay CPU temperature no longer includes them.
- Five sizes in a panel shaped like the DroidDeck mark, with a centred header,
  one left edge, neon outline and FPS; Minimal is the default size. Settings on
  a new "Performance HUD" drawer page, with Bannerlator's options.
- The HUD reads sensors and polls frames only while it is drawn (not while
  hidden, in picture-in-picture or behind another app), keeps its place after
  picture-in-picture, and the diagnostics export has its own reader.

Device-tested on the AYANEO Pocket FIT: same readings as Steam's overlay side
by side in Dead Cells; the HUD updates in a game, hides in picture-in-picture
and comes back in place, no crashes.
This commit is contained in:
The412Banner authored and GitHub committed 2026-10-29 01:53:45 +00:00
1 parent e871557bf2
commit 110cfc28f8
70 files changed
+7269 -320

No files matched your search

+59
View File
@@ -666,6 +666,65 @@
<string name="drawer_hud_color_amber">Amber</string>
<string name="drawer_hud_color_violet">Violet</string>
<string name="drawer_hud_opacity">Opacity</string>
<string name="hud_matches_steam_overlay">Frame rate, frame times and readings come from the same sources as Steam\'s performance overlay.</string>
<string name="hud_size">Size</string>
<string name="hud_size_hint">Tapping the HUD also changes its size.</string>
<string name="hud_size_full">Full</string>
<string name="hud_size_tiles">Tiles</string>
<string name="hud_size_pill">Pill</string>
<string name="hud_size_minimal">Minimal</string>
<string name="hud_size_mega">Mega</string>
<string name="hud_locked">Lock in place</string>
<string name="hud_locked_hint">Drag the HUD to move it; a long press locks or unlocks it.</string>
<string name="hud_group_look">Look</string>
<string name="hud_scale">Size on screen</string>
<string name="hud_color_soft">Soft</string>
<string name="hud_color_mid">Medium</string>
<string name="hud_color_vivid">Vivid</string>
<string name="hud_outline">Outline</string>
<string name="hud_outline_color">Outline color</string>
<string name="hud_outline_gray">Gray</string>
<string name="hud_outline_theme">Theme color</string>
<string name="hud_group_metrics">Readings</string>
<string name="hud_metric_graph">Frame time graph</string>
<string name="hud_metric_decimal">Frame rate with a decimal</string>
<string name="hud_metric_low001">0.01% low</string>
<string name="hud_metric_engine">Graphics engine</string>
<string name="hud_metric_gpu_model">GPU name</string>
<string name="hud_metric_gpu">GPU load</string>
<string name="hud_metric_gpu_temp">GPU temperature</string>
<string name="hud_metric_cpu">CPU load</string>
<string name="hud_metric_per_core">CPU per core</string>
<string name="hud_metric_temp">Temperatures</string>
<string name="hud_metric_ram">Memory</string>
<string name="hud_metric_vram">Graphics memory</string>
<string name="hud_metric_swap">Swap</string>
<string name="hud_metric_battery">Battery level</string>
<string name="hud_metric_power">Power draw</string>
<string name="hud_metric_network">Network</string>
<string name="hud_metric_resolution">Resolution</string>
<string name="hud_metric_proton">Proton version</string>
<string name="hud_metric_session">Session time</string>
<string name="hud_metric_clock">Clock</string>
<string name="hud_group_temps">Temperatures</string>
<string name="hud_temp_unit">Unit</string>
<string name="hud_temp_bands">Warning colors</string>
<string name="hud_temp_bands_hint">Temperatures turn amber, then red, as they near the limit.</string>
<string name="hud_temp_bands_off">Off</string>
<string name="hud_temp_bands_auto">Automatic</string>
<string name="hud_temp_bands_manual">Manual</string>
<string name="hud_temp_red_cpu">CPU red at</string>
<string name="hud_temp_red_gpu">GPU red at</string>
<string name="hud_temp_red_battery">Battery red at</string>
<string name="hud_group_more">More</string>
<string name="hud_export">HUD diagnostics</string>
<string name="hud_export_hint">Saves a report of every sensor the HUD reads to Downloads/DroidDeck.</string>
<string name="hud_export_button">Save</string>
<string name="hud_export_done">Saved to %1$s</string>
<string name="hud_export_failed">Couldn\'t save the HUD report.</string>
<string name="hud_reset">Reset HUD settings</string>
<string name="hud_reset_button">Reset</string>
<string name="hud_credit">FusionHUD by The412Banner, github.com/The412Banner/FusionHUD (GPL-3.0).</string>
<string name="drawer_scaling">Scaling mode</string>
<string name="drawer_scaling_sharpness">Scaling sharpness</string>
<string name="drawer_effects">Screen effects</string>