Throttle rendering in static content windows
This commit is contained in:
@@ -235,6 +235,9 @@ namespace FlaxEditor.GUI.ContextMenu
|
|||||||
_previouslyFocused = parentWin.FocusedControl;
|
_previouslyFocused = parentWin.FocusedControl;
|
||||||
Focus();
|
Focus();
|
||||||
OnShow();
|
OnShow();
|
||||||
|
|
||||||
|
// Throttle rendering of static content
|
||||||
|
_window.RenderTask.RenderFPS = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -178,6 +178,9 @@ namespace FlaxEditor.GUI.Dialogs
|
|||||||
windowGUI.PerformLayout();
|
windowGUI.PerformLayout();
|
||||||
|
|
||||||
OnShow();
|
OnShow();
|
||||||
|
|
||||||
|
// Throttle rendering of static content
|
||||||
|
_window.RenderTask.RenderFPS = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnClosing(ClosingReason reason, ref bool cancel)
|
private void OnClosing(ClosingReason reason, ref bool cancel)
|
||||||
|
|||||||
@@ -451,6 +451,9 @@ namespace FlaxEditor.GUI.Docking
|
|||||||
Window = Platform.CreateWindow(ref settings);
|
Window = Platform.CreateWindow(ref settings);
|
||||||
Window.Opacity = 0.6f;
|
Window.Opacity = 0.6f;
|
||||||
Window.GUI.BackgroundColor = Style.Current.DragWindow;
|
Window.GUI.BackgroundColor = Style.Current.DragWindow;
|
||||||
|
|
||||||
|
// Throttle rendering of static content
|
||||||
|
Window.RenderTask.RenderFPS = 2;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -484,6 +487,9 @@ namespace FlaxEditor.GUI.Docking
|
|||||||
win = Platform.CreateWindow(ref settings);
|
win = Platform.CreateWindow(ref settings);
|
||||||
win.Opacity = 0.6f;
|
win.Opacity = 0.6f;
|
||||||
win.GUI.BackgroundColor = Style.Current.DragWindow;
|
win.GUI.BackgroundColor = Style.Current.DragWindow;
|
||||||
|
|
||||||
|
// Throttle rendering of static content
|
||||||
|
win.RenderTask.RenderFPS = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -103,7 +103,7 @@ namespace FlaxEngine.GUI
|
|||||||
_window.Show();
|
_window.Show();
|
||||||
_showTarget.OnTooltipShown(this);
|
_showTarget.OnTooltipShown(this);
|
||||||
|
|
||||||
// Throttle tooltip rendering
|
// Throttle rendering of static content
|
||||||
_window.RenderTask.RenderFPS = 2;
|
_window.RenderTask.RenderFPS = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user