mirror of
https://github.com/ppy/osu
synced 2024-12-29 02:12:43 +00: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]
|
||||
private GameHost host { get; set; } = null!;
|
||||
|
||||
[Resolved]
|
||||
private MusicController musicController { get; set; } = null!;
|
||||
|
||||
public LatencyCertifierScreen()
|
||||
{
|
||||
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);
|
||||
host.UpdateThread.ActiveHz = target_host_update_frames;
|
||||
host.AllowBenchmarkUnlimitedFrames = true;
|
||||
|
||||
musicController.Stop();
|
||||
}
|
||||
|
||||
public override bool OnExiting(ScreenExitEvent e)
|
||||
|
Loading…
Reference in New Issue
Block a user