mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 15:22:55 +08:00
Stop music on entering latency certification screen
This commit is contained in:
parent
5c7d29cd31
commit
5deaa42e9f
@ -87,6 +87,9 @@ namespace osu.Game.Screens.Utility
|
|||||||
[Resolved]
|
[Resolved]
|
||||||
private GameHost host { get; set; } = null!;
|
private GameHost host { get; set; } = null!;
|
||||||
|
|
||||||
|
[Resolved]
|
||||||
|
private MusicController musicController { get; set; } = null!;
|
||||||
|
|
||||||
public LatencyCertifierScreen()
|
public LatencyCertifierScreen()
|
||||||
{
|
{
|
||||||
InternalChildren = new Drawable[]
|
InternalChildren = new Drawable[]
|
||||||
@ -166,6 +169,8 @@ Do whatever you need to try and perceive the difference in latency, then choose
|
|||||||
config.SetValue(FrameworkSetting.FrameSync, FrameSync.Unlimited);
|
config.SetValue(FrameworkSetting.FrameSync, FrameSync.Unlimited);
|
||||||
host.UpdateThread.ActiveHz = target_host_update_frames;
|
host.UpdateThread.ActiveHz = target_host_update_frames;
|
||||||
host.AllowBenchmarkUnlimitedFrames = true;
|
host.AllowBenchmarkUnlimitedFrames = true;
|
||||||
|
|
||||||
|
musicController.Stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override bool OnExiting(ScreenExitEvent e)
|
public override bool OnExiting(ScreenExitEvent e)
|
||||||
|
Loading…
Reference in New Issue
Block a user