Hi,
I'm developing an app where mouse and keyboard events flow in through a socket and are passed to this library.
It's possible for these events to be many within the time of a single frame.
As a disclaimer: I don't actually have this code yet but i'm working on it and finding the right libraries to use for my usecase.
In that case i'm wondering what the best strategy is.
Like if you receive many X/Y movements within a frame's time (say 16ms for 60 fps) then only the last movement is going to matter anyhow, anything before it within that frame's time is probably just added noise. (this is just an assumption)
I can see a couple possible strategies for this:
- It doesn't matter. A very valid strategy and easy :)
- libinput already does it (does it?) so still doing nothing is the way to go
- the library would need to do vsync aligned movements
- the application using this library needs to do vsync alignment to only send events to this library when it matters
What are your thoughts on this?
Hi,
I'm developing an app where mouse and keyboard events flow in through a socket and are passed to this library.
It's possible for these events to be many within the time of a single frame.
As a disclaimer: I don't actually have this code yet but i'm working on it and finding the right libraries to use for my usecase.
In that case i'm wondering what the best strategy is.
Like if you receive many X/Y movements within a frame's time (say 16ms for 60 fps) then only the last movement is going to matter anyhow, anything before it within that frame's time is probably just added noise. (this is just an assumption)
I can see a couple possible strategies for this:
What are your thoughts on this?