Fix timer initialization.
This fixes the problem that the first timer tick is an overrun and causes all timers to expire immediately. replaces #4003master
parent
8cf26bb0bb
commit
a60aa8e226
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
local jobs = {}
|
local jobs = {}
|
||||||
local time = 0.0
|
local time = 0.0
|
||||||
local last = 0.0
|
local last = core.get_us_time() / 1000000
|
||||||
|
|
||||||
core.register_globalstep(function(dtime)
|
core.register_globalstep(function(dtime)
|
||||||
local new = core.get_us_time() / 1000000
|
local new = core.get_us_time() / 1000000
|
||||||
|
|
Loading…
Reference in New Issue