aclysma / skulpin

Skia + Vulkan = Skulpin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MacOS: Input Lag

aclysma opened this issue · comments

Noticed that on MacOS, there can be a relatively high amount of latency (~200ms) between clicks and winit firing the corresponding input event. After adding some printfs in the winit code, it seems like the delay is coming from something pretty low level.

  • Moving the window temporarily fixes it
  • Delay does not occur if Vulkan isn't initialized
  • It seems like it affects other projects like the gfx-hal samples, but it's hard to tell for sure

Had an interesting conversation during the rust gamedev workgroup call today. This bug might be related: rust-windowing/winit#712

I need to try this with a mouse attached to see if this is a trackpad oddity. I was speculating earlier today after the conversation that this could be a power saving feature or something in the trackpad driver for debouncing clicks, detecting multitouch motions/two-finger-right-click, palm rejection, etc.

Going to close this. It's a winit issue and does not reproduce when using the sdl2 backend.