How to drop excessive amount of mouse motion


#1

Hello

I have an issue with certain computers which are equipped with higher polling mouses. The fact is I have a lot of widgets within my application which do take mouse events and parse them and if polling rate is too high certain computers (the older ones) experience drop in performance due to too many mouse motions being sent to the application. It is possible to resolve this issue by lowering mouse polling rate from e.g. 1000 to 125.

That being the case my question would be - is there a possibility to drop or limit excessive amount of mouse events without losing much information? All events are currently being handled after each rendered frame with the following piece of code:

SDL_Event event;
while(SDL_PollEvent(&event)) {
...
}