Add logging

This commit is contained in:
Dan Balasescu 2024-02-27 19:17:34 +09:00
parent f2d52fbaa2
commit dc3b41865c
No known key found for this signature in database
1 changed files with 5 additions and 0 deletions

View File

@ -5,6 +5,7 @@
using System.Runtime;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Logging;
namespace osu.Game.Performance
{
@ -20,6 +21,8 @@ public IDisposable BeginSession()
private void enableHighPerformanceSession()
{
Logger.Log("Starting high performance session");
originalGCMode = GCSettings.LatencyMode;
GCSettings.LatencyMode = GCLatencyMode.LowLatency;
@ -29,6 +32,8 @@ private void enableHighPerformanceSession()
private void disableHighPerformanceSession()
{
Logger.Log("Ending high performance session");
if (GCSettings.LatencyMode == GCLatencyMode.LowLatency)
GCSettings.LatencyMode = originalGCMode;