// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; namespace osu.Game.Performance { /// /// Allows creating a temporary "high performance" session, with the goal of optimising runtime /// performance for gameplay purposes. /// /// On desktop platforms, this will set a low latency GC mode which collects more frequently to avoid /// GC spikes. /// public interface IHighPerformanceSessionManager { /// /// Start a new high performance session. /// /// An which will end the session when disposed. IDisposable BeginSession(); } }