From a681ee900f9b30c21592f8869bf58391c9f9e0eb Mon Sep 17 00:00:00 2001 From: Ramez Ragaa Date: Fri, 10 May 2024 15:39:28 +0300 Subject: [PATCH] chore: DispatchQueueRender on Idle to prevent choking the dispatcher when continuously invalidating render --- src/Uno.UI/UI/Xaml/XamlRoot.crossruntime.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Uno.UI/UI/Xaml/XamlRoot.crossruntime.cs b/src/Uno.UI/UI/Xaml/XamlRoot.crossruntime.cs index 26319a5aebf8..5967049ef854 100644 --- a/src/Uno.UI/UI/Xaml/XamlRoot.crossruntime.cs +++ b/src/Uno.UI/UI/Xaml/XamlRoot.crossruntime.cs @@ -64,7 +64,7 @@ private void DispatchQueueRender() _renderQueued = false; InvalidateRender(); } - }); + }, NativeDispatcherPriority.Idle); }