mirror of https://github.com/ppy/osu
Add logging
This commit is contained in:
parent
f2d52fbaa2
commit
dc3b41865c
|
@ -5,6 +5,7 @@
|
||||||
using System.Runtime;
|
using System.Runtime;
|
||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
|
using osu.Framework.Logging;
|
||||||
|
|
||||||
namespace osu.Game.Performance
|
namespace osu.Game.Performance
|
||||||
{
|
{
|
||||||
|
@ -20,6 +21,8 @@ public IDisposable BeginSession()
|
||||||
|
|
||||||
private void enableHighPerformanceSession()
|
private void enableHighPerformanceSession()
|
||||||
{
|
{
|
||||||
|
Logger.Log("Starting high performance session");
|
||||||
|
|
||||||
originalGCMode = GCSettings.LatencyMode;
|
originalGCMode = GCSettings.LatencyMode;
|
||||||
GCSettings.LatencyMode = GCLatencyMode.LowLatency;
|
GCSettings.LatencyMode = GCLatencyMode.LowLatency;
|
||||||
|
|
||||||
|
@ -29,6 +32,8 @@ private void enableHighPerformanceSession()
|
||||||
|
|
||||||
private void disableHighPerformanceSession()
|
private void disableHighPerformanceSession()
|
||||||
{
|
{
|
||||||
|
Logger.Log("Ending high performance session");
|
||||||
|
|
||||||
if (GCSettings.LatencyMode == GCLatencyMode.LowLatency)
|
if (GCSettings.LatencyMode == GCLatencyMode.LowLatency)
|
||||||
GCSettings.LatencyMode = originalGCMode;
|
GCSettings.LatencyMode = originalGCMode;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue