Add support for timing using delta clocks (#97)

* Small correction to getConstantName. I swear this didn't work before, but now it does.
* Support delta timing in mkxp-z
* refresh Graphics.delta time at the start of update
* Speed up load_data
* Replace Input.count calls with Input.time?
This commit is contained in:
Roza
2021-02-26 14:57:52 -05:00
committed by GitHub
parent dd0bbe5da4
commit c9903c59c8
6 changed files with 20 additions and 17 deletions

View File

@@ -50,14 +50,14 @@ def pbPrintException(e)
print("#{message}\r\nThis exception was logged in #{errorlogline}.\r\nHold Ctrl after closing this message to copy it to the clipboard.")
# Give a ~500ms coyote time to start holding Control
(Graphics.frame_rate / 2).ceil.times{
Graphics.update
t = System.delta
until (System.delta - t) >= 500000
Input.update
if Input.press?(Input::CTRL)
Input.clipboard = message
break
end
}
end
end
def pbCriticalCode