From 31c2bd72a752fcc5a55c82a9df3ff91f766d53d9 Mon Sep 17 00:00:00 2001 From: meli <57847713+ff-meli@users.noreply.github.com> Date: Sun, 22 Dec 2019 07:49:26 -0800 Subject: [PATCH] Pull in ImGuiScene updates --- Dalamud/Interface/InterfaceManager.cs | 7 +++++++ lib/ImGuiScene | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Dalamud/Interface/InterfaceManager.cs b/Dalamud/Interface/InterfaceManager.cs index 150fff5d2..4759002ec 100644 --- a/Dalamud/Interface/InterfaceManager.cs +++ b/Dalamud/Interface/InterfaceManager.cs @@ -31,6 +31,13 @@ namespace Dalamud.Interface { using (var scene = SimpleImGuiScene.CreateOverlay(RendererFactory.RendererBackend.DirectX11)) { + // this basically pauses background rendering to reduce cpu load by the scene when it isn't actively in focus + // the impact is generally pretty minor, but it's probably best to enable when we can + // If we have any windows that we want to update dynamically even when the game is the focus + // and not the overlay, this should be disabled. + // It is dynamic, so we could disable it only when dynamic windows are open etc + scene.PauseWhenUnfocused = true; + scene.OnBuildUI += DrawUI; scene.Run(); } diff --git a/lib/ImGuiScene b/lib/ImGuiScene index 54fbae7b1..d0f143197 160000 --- a/lib/ImGuiScene +++ b/lib/ImGuiScene @@ -1 +1 @@ -Subproject commit 54fbae7b1ad92c0bc16c792794df8646b061b213 +Subproject commit d0f143197f4620150cadf1020c45bfaf856e7801