feat: add /plugin docs page + TDP peripheral overhead

Plugin docs page (/plugin):
- Hero, feature grid, numbered install guide, screenshot gallery, install CTA
- Navbar 'Plugin' link added
- Screenshot slots with placeholders for 6 captures (flip HAS_SCREENSHOT
  once PNGs are dropped into /public/plugin/)
- Structured data (SoftwareApplication) + breadcrumbs

TDP fix:
- Add 3W fixed overhead to CPU+GPU power for screen/fan/speakers/peripherals
  so reported TDP is closer to total system power draw
This commit is contained in:
2026-06-28 22:49:13 +08:00
parent 383945ca14
commit 4958220c55
4 changed files with 536 additions and 1 deletions
+8 -1
View File
@@ -112,7 +112,14 @@ def parse_mangohud_log(log_content: str) -> dict:
elif cpu_power_values:
total_power_values = cpu_power_values
if total_power_values:
tdp_watts = round(sum(total_power_values) / len(total_power_values), 1)
# MangoHud's cpu_power + gpu_power is the APU draw only. Add a fixed
# overhead for the Steam Deck's screen, fan, speakers, and other
# peripherals to get a closer estimate of total system power draw.
SYSTEM_OVERHEAD_W = 3.0
tdp_watts = round(
sum(total_power_values) / len(total_power_values) + SYSTEM_OVERHEAD_W,
1,
)
return {
"fpsAvg": fps_avg,