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:
parent
fd1f6a7e1f
commit
d4be4c4769
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user