From 61cb25bdc2b9ea4bc8c720a8f83d3ba2ea3b442d Mon Sep 17 00:00:00 2001 From: nicklavoie Date: Sat, 21 Feb 2026 22:36:06 -0500 Subject: [PATCH] Add FPS history graphs to overlay modes --- PerformanceOverlay/Controller.cs | 2 ++ PerformanceOverlay/Overlays.cs | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/PerformanceOverlay/Controller.cs b/PerformanceOverlay/Controller.cs index 723b1a9..1c4c7e7 100644 --- a/PerformanceOverlay/Controller.cs +++ b/PerformanceOverlay/Controller.cs @@ -282,7 +282,9 @@ namespace PerformanceOverlay osd = new OSD("PerformanceOverlay"); uint offset = 0; + osdEmbedGraph(ref offset, ref osdOverlay, "[OBJ_FPS_SMALL]", -8, -1, 1, 0, 200.0f, EMBEDDED_OBJECT_GRAPH.FLAG_FRAMERATE); osdEmbedGraph(ref offset, ref osdOverlay, "[OBJ_FT_SMALL]", -8, -1, 1, 0, 50000.0f, EMBEDDED_OBJECT_GRAPH.FLAG_FRAMETIME); + osdEmbedGraph(ref offset, ref osdOverlay, "[OBJ_FPS_LARGE]", -32, -2, 1, 0, 200.0f, EMBEDDED_OBJECT_GRAPH.FLAG_FRAMERATE); osdEmbedGraph(ref offset, ref osdOverlay, "[OBJ_FT_LARGE]", -32, -2, 1, 0, 50000.0f, EMBEDDED_OBJECT_GRAPH.FLAG_FRAMETIME); osd.Update(osdOverlay); diff --git a/PerformanceOverlay/Overlays.cs b/PerformanceOverlay/Overlays.cs index eb20557..1fff621 100644 --- a/PerformanceOverlay/Overlays.cs +++ b/PerformanceOverlay/Overlays.cs @@ -160,6 +160,11 @@ namespace PerformanceOverlay Nested = { new Entry(" FPS") } }, new Entry + { + Text = "[OBJ_FPS_SMALL] FPS", + Include = { OverlayMode.Detail } + }, + new Entry { Text = "[OBJ_FT_SMALL] ms", Include = { OverlayMode.Detail } @@ -223,6 +228,8 @@ namespace PerformanceOverlay new Entry("C{BATT_CHARGE_W} W") { IgnoreMissing = true } } }, + new Entry("FPS"), + new Entry("[OBJ_FPS_LARGE] FPS"), new Entry("Frametime"), new Entry("[OBJ_FT_LARGE] ms"), },