thread split: get units working

This commit is contained in:
Evan
2025-02-01 12:05:11 -08:00
parent e395619abc
commit 3da6008e9f
9 changed files with 127 additions and 62 deletions
+6
View File
@@ -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!');