dinput: Increase device buffer size to 1024.
The buffer size was previously limited to 20 in:
8d05256172
Testing shows that it is somewhere around 1024 on Windows, and using a
smaller buffer causes some input data to be lost with high polling rate
mouses. It can be spotted in Wolfenstein II: New Colossus menus.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
ffd4bb2520
commit
50440e28bb
|
@ -1398,7 +1398,7 @@ HRESULT WINAPI IDirectInputDevice2WImpl_SetProperty(
|
|||
EnterCriticalSection(&This->crit);
|
||||
|
||||
This->buffersize = pd->dwData;
|
||||
This->queue_len = min(This->buffersize, 20);
|
||||
This->queue_len = min(This->buffersize, 1024);
|
||||
HeapFree(GetProcessHeap(), 0, This->data_queue);
|
||||
|
||||
This->data_queue = !This->queue_len ? NULL : HeapAlloc(GetProcessHeap(), 0,
|
||||
|
|
Loading…
Reference in New Issue