mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-22 12:30:22 +00:00
thread split: get units working
This commit is contained in:
@@ -128,6 +128,12 @@ export class ClientGameRunner {
|
||||
this.gameView.update(gu)
|
||||
this.renderer.tick()
|
||||
})
|
||||
const worker = this.worker
|
||||
const keepWorkerAlive = () => {
|
||||
worker.sendHeartbeat
|
||||
requestAnimationFrame(keepWorkerAlive)
|
||||
}
|
||||
requestAnimationFrame(keepWorkerAlive)
|
||||
|
||||
const onconnect = () => {
|
||||
consolex.log('Connected to game server!');
|
||||
|
||||
Reference in New Issue
Block a user