mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-01 05:13:40 +01:00
Pull in ImGuiScene updates
This commit is contained in:
parent
22c024cd7b
commit
31c2bd72a7
2 changed files with 8 additions and 1 deletions
|
|
@ -31,6 +31,13 @@ namespace Dalamud.Interface
|
||||||
{
|
{
|
||||||
using (var scene = SimpleImGuiScene.CreateOverlay(RendererFactory.RendererBackend.DirectX11))
|
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.OnBuildUI += DrawUI;
|
||||||
scene.Run();
|
scene.Run();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
Subproject commit 54fbae7b1ad92c0bc16c792794df8646b061b213
|
Subproject commit d0f143197f4620150cadf1020c45bfaf856e7801
|
||||||
Loading…
Add table
Add a link
Reference in a new issue