From fce373fea8ca8c36b29bf5fd05f43ad0d310bad7 Mon Sep 17 00:00:00 2001 From: portersky Date: Sat, 29 Aug 2026 14:01:46 +0200 Subject: [PATCH] fix: refresh controller input faster Poll the controller snapshot every 20 ms instead of every 100 ms so stick and trigger movement reaches the monitor UI with less visible latency. Co-Authored-By: openai/gpt-5.6-luna: reduced input monitor polling latency --- src/app/main.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/main.swift b/src/app/main.swift index f982f9f..9aaf177 100644 --- a/src/app/main.swift +++ b/src/app/main.swift @@ -48,7 +48,7 @@ struct ContentView: View { // Connected controllers and their latest input snapshot. @State private var controllers: [ControllerSnapshot] = [] - private let timer = Timer.publish(every: 0.1, on: .main, in: .common) + private let timer = Timer.publish(every: 0.02, on: .main, in: .common) .autoconnect() var body: some View {