mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-24 01:19:18 +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))
|
||||
{
|
||||
// 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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue