Throttle tooltip window rendering

This commit is contained in:
2023-10-01 18:36:29 +03:00
parent 0fb0492738
commit db318b56e3
2 changed files with 4 additions and 1 deletions

View File

@@ -298,7 +298,7 @@ public:
/// <summary>
/// The rendering task for that window.
/// </summary>
RenderTask* RenderTask;
API_FIELD() RenderTask* RenderTask;
/// <summary>
/// Event fired when window gets shown.

View File

@@ -102,6 +102,9 @@ namespace FlaxEngine.GUI
Visible = true;
_window.Show();
_showTarget.OnTooltipShown(this);
// Throttle tooltip rendering
_window.RenderTask.RenderFPS = 2;
}
/// <summary>