From 859caec3d5c1b6aa9eee98571af3324b6ed1bd21 Mon Sep 17 00:00:00 2001 From: yum Date: Fri, 8 Dec 2023 18:15:03 -0800 Subject: Decrease OSC sync rate from 5 Hz to 3 Hz Paging is now slower but more reliable. --- Scripts/osc_ctrl.py | 7 ++++--- 1 file 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): -- cgit v1.2.3