pass deltatime in seconds during ticks.
previously it was passed in milliseconds.
This commit is contained in:
parent
b367c4b3a3
commit
af3ec008c9
|
@ -10,6 +10,6 @@ export function tick () {
|
|||
last_tick += deltatime;
|
||||
|
||||
for (const callback of tickers) {
|
||||
callback(deltatime);
|
||||
callback(deltatime / 1000);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue