vmount: adjust timeout 50 -> 20 ms (50 Hz)

This commit is contained in:
Daniel Agar
2021-12-08 01:02:46 -05:00
parent 9cb2bf389c
commit 3b94742117
+1 -1
View File
@@ -377,7 +377,7 @@ static int vmount_thread_main(int argc, char *argv[])
bool already_active = (last_active == i);
ControlData *control_data_to_check = nullptr;
unsigned int poll_timeout = already_active ? 50 : 0; // poll only on active input to reduce latency
unsigned int poll_timeout = already_active ? 20 : 0; // poll only on active input to reduce latency
int ret = thread_data.input_objs[i]->update(poll_timeout, &control_data_to_check, already_active);
if (ret) {