mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user