mirror of https://github.com/ppy/osu
Stop music on entering latency certification screen
This commit is contained in:
parent
5c7d29cd31
commit
5deaa42e9f
|
@ -87,6 +87,9 @@ public class LatencyCertifierScreen : OsuScreen
|
|||
[Resolved]
|
||||
private GameHost host { get; set; } = null!;
|
||||
|
||||
[Resolved]
|
||||
private MusicController musicController { get; set; } = null!;
|
||||
|
||||
public LatencyCertifierScreen()
|
||||
{
|
||||
InternalChildren = new Drawable[]
|
||||
|
@ -166,6 +169,8 @@ public override void OnEntering(ScreenTransitionEvent e)
|
|||
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