1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-01-26 15:32:04 +00:00

Of course, I want min. Not max.

This commit is contained in:
Thomas Harte 2016-04-06 20:27:48 -04:00
parent fd1f6a7e1f
commit d4be4c4769

View File

@ -44,7 +44,7 @@ class MachineDocument: NSDocument, CSOpenGLViewDelegate, CSOpenGLViewResponderDe
// if the emulation has fallen too far behind then silently limit the request;
// some actions e.g. the host computer waking after sleep may give us a
// prohibitive backlog
runForNumberOfCycles(max(Int32(elapsedTime), Int32(intendedCyclesPerSecond / 25)))
runForNumberOfCycles(min(Int32(elapsedTime), Int32(intendedCyclesPerSecond / 25)))
}
lastCycleCount = cycleCount
}