Pull in ImGuiScene updates

This commit is contained in:
meli 2019-12-22 07:49:26 -08:00
parent 22c024cd7b
commit 31c2bd72a7
2 changed files with 8 additions and 1 deletions

View file

@ -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();
}