mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 13:37:25 +08:00
Rename to latency certifier
This commit is contained in:
parent
1a1dfaeae6
commit
9da99a0ddf
@ -12,14 +12,14 @@ using osuTK.Input;
|
||||
|
||||
namespace osu.Game.Tests.Visual.Settings
|
||||
{
|
||||
public class TestSceneLatencyComparer : ScreenTestScene
|
||||
public class TestSceneLatencyCertifierScreen : ScreenTestScene
|
||||
{
|
||||
private LatencyComparerScreen latencyComparer = null!;
|
||||
private LatencyCertifierScreen latencyCertifier = null!;
|
||||
|
||||
public override void SetUpSteps()
|
||||
{
|
||||
base.SetUpSteps();
|
||||
AddStep("Load screen", () => LoadScreen(latencyComparer = new LatencyComparerScreen()));
|
||||
AddStep("Load screen", () => LoadScreen(latencyCertifier = new LatencyCertifierScreen()));
|
||||
}
|
||||
|
||||
[Test]
|
||||
@ -28,20 +28,20 @@ namespace osu.Game.Tests.Visual.Settings
|
||||
for (int i = 0; i < 4; i++)
|
||||
{
|
||||
clickCorrectUntilResults();
|
||||
AddAssert("check at results", () => !latencyComparer.ChildrenOfType<LatencyArea>().Any());
|
||||
AddAssert("check at results", () => !latencyCertifier.ChildrenOfType<LatencyArea>().Any());
|
||||
AddStep("hit c to continue", () => InputManager.Key(Key.C));
|
||||
}
|
||||
|
||||
AddAssert("check at results", () => !latencyComparer.ChildrenOfType<LatencyArea>().Any());
|
||||
AddAssert("check at results", () => !latencyCertifier.ChildrenOfType<LatencyArea>().Any());
|
||||
|
||||
AddAssert("check no buttons", () => !latencyComparer.ChildrenOfType<OsuButton>().Any());
|
||||
AddAssert("check no buttons", () => !latencyCertifier.ChildrenOfType<OsuButton>().Any());
|
||||
}
|
||||
|
||||
private void clickCorrectUntilResults()
|
||||
{
|
||||
AddUntilStep("click correct button until results", () =>
|
||||
{
|
||||
var latencyArea = latencyComparer
|
||||
var latencyArea = latencyCertifier
|
||||
.ChildrenOfType<LatencyArea>()
|
||||
.SingleOrDefault(a => a.TargetFrameRate == 0);
|
||||
|
@ -40,7 +40,7 @@ namespace osu.Game.Overlays.Settings.Sections.DebugSettings
|
||||
new SettingsButton
|
||||
{
|
||||
Text = @"Run latency comparer",
|
||||
Action = () => performer?.PerformFromScreen(menu => menu.Push(new LatencyComparerScreen()))
|
||||
Action = () => performer?.PerformFromScreen(menu => menu.Push(new LatencyCertifierScreen()))
|
||||
}
|
||||
};
|
||||
}
|
||||
|
@ -29,7 +29,7 @@ using osuTK.Input;
|
||||
|
||||
namespace osu.Game.Screens.Utility
|
||||
{
|
||||
public class LatencyComparerScreen : OsuScreen
|
||||
public class LatencyCertifierScreen : OsuScreen
|
||||
{
|
||||
private FrameSync previousFrameSyncMode;
|
||||
private double previousActiveHz;
|
||||
@ -78,7 +78,7 @@ namespace osu.Game.Screens.Utility
|
||||
[Resolved]
|
||||
private GameHost host { get; set; } = null!;
|
||||
|
||||
public LatencyComparerScreen()
|
||||
public LatencyCertifierScreen()
|
||||
{
|
||||
InternalChildren = new Drawable[]
|
||||
{
|
||||
@ -117,9 +117,8 @@ namespace osu.Game.Screens.Utility
|
||||
TextAnchor = Anchor.TopCentre,
|
||||
RelativeSizeAxes = Axes.X,
|
||||
AutoSizeAxes = Axes.Y,
|
||||
Text = @"Welcome to the latency comparer!
|
||||
Text = @"Welcome to the latency certifier!
|
||||
Use the arrow keys, Z/X/J/K to move the square.
|
||||
You can click the targets but you don't have to.
|
||||
Use the Tab key to change focus.
|
||||
Do whatever you need to try and perceive the difference in latency, then choose your best side.
|
||||
",
|
Loading…
Reference in New Issue
Block a user