Remove all calls to Realm.Refresh to fix blocking overhead from subscriptions

Turns out this is not required if realm is aware of a
`SynchronizationContext`. See
https://github.com/realm/realm-dotnet/discussions/2775#discussioncomment-2005412
for further reading.
This commit is contained in:
Dean Herbert
2022-01-20 20:23:17 +09:00
parent cab63830a1
commit 5df46d0a54
3 changed files with 1 additions and 23 deletions

View File

@ -351,13 +351,6 @@ namespace osu.Game
FrameStatistics.ValueChanged += e => fpsDisplayVisible.Value = e.NewValue != FrameStatisticsMode.None;
}
protected override void Update()
{
base.Update();
realmFactory.Refresh();
}
protected override IReadOnlyDependencyContainer CreateChildDependencies(IReadOnlyDependencyContainer parent) =>
dependencies = new DependencyContainer(base.CreateChildDependencies(parent));