da03 commited on
Commit
406c8c8
·
1 Parent(s): 72b1ee4
Files changed (2) hide show
  1. main.py +1 -0
  2. static/index.html +1 -1
main.py CHANGED
@@ -269,6 +269,7 @@ async def websocket_endpoint(websocket: WebSocket):
269
 
270
  # Add the input to our queue
271
  input_queue.append(data)
 
272
 
273
  # If we're not currently processing, start processing this input
274
  if not is_processing:
 
269
 
270
  # Add the input to our queue
271
  input_queue.append(data)
272
+ print (f"Input queue length: {len(input_queue)}")
273
 
274
  # If we're not currently processing, start processing this input
275
  if not is_processing:
static/index.html CHANGED
@@ -83,7 +83,7 @@
83
 
84
  let lastSentPosition = null;
85
  let lastSentTime = 0;
86
- const SEND_INTERVAL = 50; // Send updates every 50ms
87
 
88
  // Track currently pressed keys
89
  const pressedKeys = new Set();
 
83
 
84
  let lastSentPosition = null;
85
  let lastSentTime = 0;
86
+ const SEND_INTERVAL = 10; // Send updates every 50ms
87
 
88
  // Track currently pressed keys
89
  const pressedKeys = new Set();