File tree 2 files changed +8
-0
lines changed
2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 3
3
4
4
using System ;
5
5
using System . Runtime ;
6
+ using System . Threading ;
6
7
using osu . Framework . Allocation ;
7
8
using osu . Framework . Logging ;
8
9
using osu . Game . Performance ;
@@ -11,6 +12,8 @@ namespace osu.Desktop.Performance
11
12
{
12
13
public class HighPerformanceSessionManager : IHighPerformanceSessionManager
13
14
{
15
+ public bool IsSessionActive => activeSessions > 0 ;
16
+
14
17
private int activeSessions ;
15
18
16
19
private GCLatencyMode originalGCMode ;
Original file line number Diff line number Diff line change @@ -14,6 +14,11 @@ namespace osu.Game.Performance
14
14
/// </summary>
15
15
public interface IHighPerformanceSessionManager
16
16
{
17
+ /// <summary>
18
+ /// Whether a high performance session is currently active.
19
+ /// </summary>
20
+ bool IsSessionActive { get ; }
21
+
17
22
/// <summary>
18
23
/// Start a new high performance session.
19
24
/// </summary>
You can’t perform that action at this time.
0 commit comments