1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 06:07:25 +08:00

Fix latency certifier potentially reporting infinite mouse polling rate

This commit is contained in:
Salman Ahmed 2022-06-11 14:58:16 +03:00
parent 75a96bbac1
commit 06f070c3ec

View File

@ -147,7 +147,7 @@ Do whatever you need to try and perceive the difference in latency, then choose
protected override bool OnMouseMove(MouseMoveEvent e)
{
if (lastPoll > 0)
if (lastPoll > 0 && Clock.CurrentTime != lastPoll)
pollingMax = (int)Math.Max(pollingMax, 1000 / (Clock.CurrentTime - lastPoll));
lastPoll = Clock.CurrentTime;
return base.OnMouseMove(e);