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
This commit is contained in:
portersky
2026-08-29 14:01:46 +02:00
parent 0a8b992268
commit fce373fea8
+1 -1
View File
@@ -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 {