From 84bb78558ef8f56ccf0c54dec885ed3716ff32c6 Mon Sep 17 00:00:00 2001 From: Rusty Burchfield Date: Sun, 12 Mar 2023 18:29:15 -0700 Subject: [PATCH 1/5] Sleep -> Yield --- FModel/ViewModels/CUE4ParseViewModel.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FModel/ViewModels/CUE4ParseViewModel.cs b/FModel/ViewModels/CUE4ParseViewModel.cs index b566634a..42c4530f 100644 --- a/FModel/ViewModels/CUE4ParseViewModel.cs +++ b/FModel/ViewModels/CUE4ParseViewModel.cs @@ -509,7 +509,7 @@ public class CUE4ParseViewModel : ViewModel { foreach (var asset in assetItems) { - Thread.Sleep(10); + Thread.Yield(); cancellationToken.ThrowIfCancellationRequested(); Extract(cancellationToken, asset.FullPath, TabControl.HasNoTabs); } @@ -519,7 +519,7 @@ public class CUE4ParseViewModel : ViewModel { foreach (var asset in folder.AssetsList.Assets) { - Thread.Sleep(10); + Thread.Yield(); cancellationToken.ThrowIfCancellationRequested(); try { From d9e6c1f95137f5c5f8658b33206f43478e406b48 Mon Sep 17 00:00:00 2001 From: Rusty Burchfield Date: Sun, 12 Mar 2023 18:30:06 -0700 Subject: [PATCH 2/5] Sleep -> Yield --- FModel/ViewModels/Commands/MenuCommand.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FModel/ViewModels/Commands/MenuCommand.cs b/FModel/ViewModels/Commands/MenuCommand.cs index 6d49bcb7..1fa133c5 100644 --- a/FModel/ViewModels/Commands/MenuCommand.cs +++ b/FModel/ViewModels/Commands/MenuCommand.cs @@ -106,7 +106,7 @@ public class MenuCommand : ViewModelCommand if (parent.IsExpanded != isExpanded) { parent.IsExpanded = isExpanded; - Thread.Sleep(10); + Thread.Yield(); } cancellationToken.ThrowIfCancellationRequested(); From b0db727426e4971421ce39e5846957e5ed4f7a75 Mon Sep 17 00:00:00 2001 From: Rusty Burchfield Date: Thu, 16 Mar 2023 11:56:40 -0700 Subject: [PATCH 3/5] Enable TreeView UI Virtualization --- FModel/MainWindow.xaml | 2 +- FModel/Views/Resources/Resources.xaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/FModel/MainWindow.xaml b/FModel/MainWindow.xaml index f5d533a2..8db158ff 100644 --- a/FModel/MainWindow.xaml +++ b/FModel/MainWindow.xaml @@ -327,7 +327,7 @@ - + diff --git a/FModel/Views/Resources/Resources.xaml b/FModel/Views/Resources/Resources.xaml index 3d03acd8..7ccdc433 100644 --- a/FModel/Views/Resources/Resources.xaml +++ b/FModel/Views/Resources/Resources.xaml @@ -247,7 +247,7 @@