Profile editor - Fix update timer frequency which was causing freezes

This commit is contained in:
Robert committed 2024-05-02 19:36:34 +02:00
1 parent a9d4bd2385
commit c18f542a61
3 files changed
+3 -3

No files matched your search

@@ -51,7 +51,7 @@ public class DataBindingViewModel : ActivatableViewModelBase
.DisposeWith(d);
_profileEditorService.Playing.CombineLatest(_profileEditorService.SuspendedEditing).Subscribe(tuple => _playing = tuple.First || tuple.Second).DisposeWith(d);
Timer updateTimer = new(TimeSpan.FromMilliseconds(25.0 / 1000));
Timer updateTimer = new(TimeSpan.FromMilliseconds(25));
Timer saveTimer = new(TimeSpan.FromMinutes(2));
updateTimer.Elapsed += (_, _) => Update();