Skip to content

Commit e39b8fa

Browse files
committed
fix: increase ping rate to prevent early load-in disconnects.
When loading into larger worlds, the initial snapshot is quite large, so while the client is processing everything they can miss a pong and the server disconnects them.
1 parent 28c4e64 commit e39b8fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/systems/ServerNetwork.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import * as THREE from '../extras/three'
99
import { Ranks } from '../extras/ranks'
1010

1111
const SAVE_INTERVAL = parseInt(process.env.SAVE_INTERVAL || '60') // seconds
12-
const PING_RATE = 1 // seconds
12+
const PING_RATE = 10 // seconds
1313
const defaultSpawn = '{ "position": [0, 0, 0], "quaternion": [0, 0, 0, 1] }'
1414

1515
const HEALTH_MAX = 100

0 commit comments

Comments
 (0)