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
@@ -613,6 +613,65 @@
<string name="drawer_hud_color_amber">Янтарный</string>
<string name="drawer_hud_color_violet">Фиолетовый</string>
<string name="drawer_hud_opacity">Непрозрачность</string>
<string name="hud_matches_steam_overlay">Частота кадров, время кадров и показания берутся из тех же источников, что и оверлей производительности Steam.</string>
<string name="hud_size">Размер</string>
<string name="hud_size_hint">Касание HUD тоже меняет его размер.</string>
<string name="hud_size_full">Полный</string>
<string name="hud_size_tiles">Плитки</string>
<string name="hud_size_pill">Капсула</string>
<string name="hud_size_minimal">Минимальный</string>
<string name="hud_size_mega">Мега</string>
<string name="hud_locked">Закрепить на месте</string>
<string name="hud_locked_hint">Перетащите HUD, чтобы переместить его; долгое нажатие закрепляет или открепляет его.</string>
<string name="hud_group_look">Внешний вид</string>
<string name="hud_scale">Размер на экране</string>
<string name="hud_color_soft">Мягкий</string>
<string name="hud_color_mid">Средний</string>
<string name="hud_color_vivid">Яркий</string>
<string name="hud_outline">Контур</string>
<string name="hud_outline_color">Цвет контура</string>
<string name="hud_outline_gray">Серый</string>
<string name="hud_outline_theme">Цвет темы</string>
<string name="hud_group_metrics">Показатели</string>
<string name="hud_metric_graph">График времени кадров</string>
<string name="hud_metric_decimal">Частота кадров с десятыми</string>
<string name="hud_metric_low001">0.01% минимальных</string>
<string name="hud_metric_engine">Графический движок</string>
<string name="hud_metric_gpu_model">Название GPU</string>
<string name="hud_metric_gpu">Загрузка GPU</string>
<string name="hud_metric_gpu_temp">Температура GPU</string>
<string name="hud_metric_cpu">Загрузка CPU</string>
<string name="hud_metric_per_core">CPU по ядрам</string>
<string name="hud_metric_temp">Температуры</string>
<string name="hud_metric_ram">Память</string>
<string name="hud_metric_vram">Видеопамять</string>
<string name="hud_metric_swap">Подкачка</string>
<string name="hud_metric_battery">Заряд батареи</string>
<string name="hud_metric_power">Потребляемая мощность</string>
<string name="hud_metric_network">Сеть</string>
<string name="hud_metric_resolution">Разрешение</string>
<string name="hud_metric_proton">Версия Proton</string>
<string name="hud_metric_session">Время сессии</string>
<string name="hud_metric_clock">Часы</string>
<string name="hud_group_temps">Температуры</string>
<string name="hud_temp_unit">Единицы</string>
<string name="hud_temp_bands">Цвета предупреждений</string>
<string name="hud_temp_bands_hint">Температуры становятся янтарными, затем красными по мере приближения к пределу.</string>
<string name="hud_temp_bands_off">Выкл.</string>
<string name="hud_temp_bands_auto">Автоматически</string>
<string name="hud_temp_bands_manual">Вручную</string>
<string name="hud_temp_red_cpu">CPU: красный от</string>
<string name="hud_temp_red_gpu">GPU: красный от</string>
<string name="hud_temp_red_battery">Батарея: красный от</string>
<string name="hud_group_more">Еще</string>
<string name="hud_export">Диагностика HUD</string>
<string name="hud_export_hint">Сохраняет в Downloads/DroidDeck отчет по всем датчикам, которые считывает HUD.</string>
<string name="hud_export_button">Сохранить</string>
<string name="hud_export_done">Сохранено: %1$s</string>
<string name="hud_export_failed">Не удалось сохранить отчет HUD.</string>
<string name="hud_reset">Сбросить настройки HUD</string>
<string name="hud_reset_button">Сбросить</string>
<string name="hud_credit">FusionHUD от The412Banner, github.com/The412Banner/FusionHUD (GPL-3.0).</string>
<string name="drawer_scaling">Режим масштабирования</string>
<string name="drawer_scaling_sharpness">Резкость масштабирования</string>
<string name="drawer_effects">Экранные эффекты</string>