1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 09:17:51 +08:00

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

View File

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