aclysma / skulpin

Skia + Vulkan = Skulpin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow to disable vsync (change swap interval)

liquidev opened this issue · comments

For desktop apps that don't rerender unless the user does some action (using winit's ControlFlow::Wait), I think it would be a pretty good idea to allow for rendering immediately after the event occurs rather than waiting for vertical sync. This could reduce input lag in these kinds of applications.

This is controllable by present mode. This choice affects latency, but it also affects power usage and if screen tearing is possible. The next version of rafx does not have present mode exposed but does have a simple vsync bool.

As far as I could tell skulpin doesn't use rafx?

The next version of skulpin (in the use-rafx branch) will use rafx. (My previous message I meant to say "next version of skulpin does not have present mode" (because rafx does not expose it)

Is the vsync bool configurable yet?

It's there in rafx but there wasn't exposed. I've added it and will publish 0.13.0 when it passes CI