Skip to content

Commit 79525e0

Browse files
committed
review feedback
1 parent a64e990 commit 79525e0

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

Assets/Tests/InputSystem/CorePerformanceTests.cs

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1153,21 +1153,26 @@ public IEnumerator Performance_MeasureInputSystemFrameTimeWithProfilerMarkers_FP
11531153

11541154
using (Measure.ProfilerMarkers(markers))
11551155
{
1156+
1157+
Press(keyboard.wKey, queueEventOnly: true);
1158+
11561159
for (int i = 0; i < 500; ++i)
11571160
{
1158-
PressAndRelease(keyboard.wKey, queueEventOnly: true);
1159-
PressAndRelease(keyboard.aKey, queueEventOnly: true);
1160-
PressAndRelease(keyboard.sKey, queueEventOnly: true);
1161-
PressAndRelease(keyboard.dKey, queueEventOnly: true);
1161+
1162+
if (i % 60 == 0) {
1163+
PressAndRelease(keyboard.aKey, queueEventOnly: true);
1164+
PressAndRelease(keyboard.sKey, queueEventOnly: true);
1165+
PressAndRelease(keyboard.dKey, queueEventOnly: true);
11621166

1163-
PressAndRelease(keyboard.leftShiftKey, queueEventOnly: true);
1167+
PressAndRelease(keyboard.leftShiftKey, queueEventOnly: true);
11641168

1165-
PressAndRelease(keyboard.spaceKey, queueEventOnly: true);
1169+
PressAndRelease(keyboard.spaceKey, queueEventOnly: true);
1170+
}
11661171

11671172
Click(mouse.leftButton, queueEventOnly: true);
11681173

1169-
//mouse movements for higher polling mice (66*60 ~ 4kHz)
1170-
for (int j = 0; j < 66; ++j)
1174+
//mouse movements for higher polling mice
1175+
for (int j = 0; j < 99; ++j)
11711176
{
11721177
Move(mouse.position, new Vector2(i + j, i + j), queueEventOnly: true);
11731178
}

0 commit comments

Comments
 (0)