summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2023-12-08 18:15:03 -0800
committeryum <yum.food.vr@gmail.com>2023-12-08 18:15:03 -0800
commit859caec3d5c1b6aa9eee98571af3324b6ed1bd21 (patch)
treef2233b7d0affb63d7c863d5e41681237fe2134d5
parent15368618a109eeec69209a6693839eb359ecd190 (diff)
Decrease OSC sync rate from 5 Hz to 3 Hzv0.17.0
Paging is now slower but more reliable.
-rw-r--r--Scripts/osc_ctrl.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/Scripts/osc_ctrl.py b/Scripts/osc_ctrl.py
index 8e5f1e4..c077b2b 100644
--- a/Scripts/osc_ctrl.py
+++ b/Scripts/osc_ctrl.py
@@ -11,9 +11,10 @@ import generate_utils
import random
import time
-# Based on a couple experiments, this seems like about as fast as we can go
-# before players start losing events.
-SYNC_FREQ_HZ = 5.0
+# 5 Hz usually works, but 3 Hz is more reliable in busy lobbies. Feel free to
+# dial this up if you want faster paging, but know that it might break for
+# remote users.
+SYNC_FREQ_HZ = 3.0
SYNC_DELAY_S = 1.0 / SYNC_FREQ_HZ
def getClient(ip = "127.0.0.1", port = 9000):