Use GetRawInputBuffer() instead processing raw input one at a time

This is a huge performance improvement for high polling rate mice, like the Razer Viper 8K mouse.

Fixes https://github.com/libsdl-org/SDL/issues/8756
This commit is contained in:
Sam Lantinga
2024-01-01 20:10:39 -08:00
parent 87b8f09657
commit 8fe4a45edf
3 changed files with 203 additions and 116 deletions

View File

@@ -518,6 +518,7 @@ static void CleanupWindowData(SDL_VideoDevice *_this, SDL_Window *window)
#endif
}
}
SDL_free(data->rawinput);
SDL_free(data);
}
window->driverdata = NULL;