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:
+1
-1
@@ -48,7 +48,7 @@ struct ContentView: View {
|
|||||||
// Connected controllers and their latest input snapshot.
|
// Connected controllers and their latest input snapshot.
|
||||||
@State private var controllers: [ControllerSnapshot] = []
|
@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()
|
.autoconnect()
|
||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
|
|||||||
Reference in New Issue
Block a user