Skip to content

Commit 820e225

Browse files
smoogipoopeppy
authored andcommitted
Remove high performance GC setting
1 parent c5f6d53 commit 820e225

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

‎osu.Game/Performance/HighPerformanceSession.cs‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright (c) ppy Pty Ltd <[email protected]>. Licensed under the MIT Licence.
22
// See the LICENCE file in the repository root for full licence text.
33

4-
using System.Runtime;
54
using osu.Framework.Allocation;
65
using osu.Framework.Bindables;
76
using osu.Framework.Graphics;
@@ -11,7 +10,6 @@ namespace osu.Game.Performance
1110
public class HighPerformanceSession : Component
1211
{
1312
private readonly IBindable<bool> localUserPlaying = new Bindable<bool>();
14-
private GCLatencyMode originalGCMode;
1513

1614
[BackgroundDependencyLoader]
1715
private void load(OsuGame game)
@@ -34,14 +32,10 @@ protected override void LoadComplete()
3432

3533
protected virtual void EnableHighPerformanceSession()
3634
{
37-
originalGCMode = GCSettings.LatencyMode;
38-
GCSettings.LatencyMode = GCLatencyMode.LowLatency;
3935
}
4036

4137
protected virtual void DisableHighPerformanceSession()
4238
{
43-
if (GCSettings.LatencyMode == GCLatencyMode.LowLatency)
44-
GCSettings.LatencyMode = originalGCMode;
4539
}
4640
}
4741
}

0 commit comments

Comments
 (0)