mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-06-28 13:16:24 +02:00
Improved speed of XCI Trimmer read headers by removing garbage collect and superfluous read
This commit is contained in:
parent
4d16b2b4e4
commit
449333c451
2 changed files with 7 additions and 4 deletions
|
@ -76,8 +76,13 @@ namespace Ryujinx.Ava.UI.ViewModels
|
|||
foreach (ApplicationData xciApp in apps)
|
||||
{
|
||||
AddOrUpdateXCITrimmerFile(CreateXCITrimmerFile(xciApp.Path));
|
||||
_mainWindowViewModel.StatusBarProgressValue = ++appsProcessed;
|
||||
Dispatcher.UIThread.InvokeAsync(() => { }, DispatcherPriority.Render).Wait();
|
||||
|
||||
if (appsProcessed % 50 == 0)
|
||||
{
|
||||
_mainWindowViewModel.StatusBarProgressValue = appsProcessed;
|
||||
Dispatcher.UIThread.InvokeAsync(() => { }, DispatcherPriority.Render).Wait();
|
||||
}
|
||||
appsProcessed++;
|
||||
}
|
||||
}
|
||||
finally
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue