diff --git a/Source/Editor/GUI/ContextMenu/ContextMenuBase.cs b/Source/Editor/GUI/ContextMenu/ContextMenuBase.cs index 511cda2e5..0cd464911 100644 --- a/Source/Editor/GUI/ContextMenu/ContextMenuBase.cs +++ b/Source/Editor/GUI/ContextMenu/ContextMenuBase.cs @@ -235,6 +235,9 @@ namespace FlaxEditor.GUI.ContextMenu _previouslyFocused = parentWin.FocusedControl; Focus(); OnShow(); + + // Throttle rendering of static content + _window.RenderTask.RenderFPS = 2; } /// diff --git a/Source/Editor/GUI/Dialogs/Dialog.cs b/Source/Editor/GUI/Dialogs/Dialog.cs index 9d1461074..2e3c03706 100644 --- a/Source/Editor/GUI/Dialogs/Dialog.cs +++ b/Source/Editor/GUI/Dialogs/Dialog.cs @@ -178,6 +178,9 @@ namespace FlaxEditor.GUI.Dialogs windowGUI.PerformLayout(); OnShow(); + + // Throttle rendering of static content + _window.RenderTask.RenderFPS = 2; } private void OnClosing(ClosingReason reason, ref bool cancel) diff --git a/Source/Editor/GUI/Docking/DockHintWindow.cs b/Source/Editor/GUI/Docking/DockHintWindow.cs index c2a622740..5c6aa71fd 100644 --- a/Source/Editor/GUI/Docking/DockHintWindow.cs +++ b/Source/Editor/GUI/Docking/DockHintWindow.cs @@ -451,6 +451,9 @@ namespace FlaxEditor.GUI.Docking Window = Platform.CreateWindow(ref settings); Window.Opacity = 0.6f; Window.GUI.BackgroundColor = Style.Current.DragWindow; + + // Throttle rendering of static content + Window.RenderTask.RenderFPS = 2; } else { @@ -484,6 +487,9 @@ namespace FlaxEditor.GUI.Docking win = Platform.CreateWindow(ref settings); win.Opacity = 0.6f; win.GUI.BackgroundColor = Style.Current.DragWindow; + + // Throttle rendering of static content + win.RenderTask.RenderFPS = 2; } /// diff --git a/Source/Engine/UI/GUI/Tooltip.cs b/Source/Engine/UI/GUI/Tooltip.cs index 0ad005fdb..615964a0a 100644 --- a/Source/Engine/UI/GUI/Tooltip.cs +++ b/Source/Engine/UI/GUI/Tooltip.cs @@ -103,7 +103,7 @@ namespace FlaxEngine.GUI _window.Show(); _showTarget.OnTooltipShown(this); - // Throttle tooltip rendering + // Throttle rendering of static content _window.RenderTask.RenderFPS = 2; }