Skip to content

vsync aligned operations? #3

Description

@markg85

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:

  1. It doesn't matter. A very valid strategy and easy :)
  2. libinput already does it (does it?) so still doing nothing is the way to go
  3. the library would need to do vsync aligned movements
  4. 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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions