change sync time to 30hz
This commit is contained in:
parent
8cc663d9a7
commit
2653fb9297
1 changed files with 1 additions and 1 deletions
2
game.js
2
game.js
|
@ -207,7 +207,7 @@ class Game extends GameBasic {
|
|||
that.entities.push(new Shooter(false, that))
|
||||
}
|
||||
|
||||
setInterval(function () { that.sync(false) }, 1000 / 10);
|
||||
setInterval(function () { that.sync(false) }, 1000 / 30);
|
||||
setInterval(function () { that.sync(true) }, 1000);
|
||||
setInterval(function () { that.clean() }, 1000);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue