Wgpu-rs: Enabling vsync?

Created on 20 Mar 2020  路  2Comments  路  Source: gfx-rs/wgpu-rs

Hi, sorry if this is a really obvious question, but I'm struggling with finding out how to enable vsync with the vulkan backend.

question

Most helpful comment

Hi @expenses! I believe if you specify PresentMode::Vsync in your SwapChainDescriptor, the swap chain will use a double-buffer and synchronise access to the swap chain textures with the display refresh rate. It's worth noting that this mode has been renamed to Fifo on master I believe and a couple of other modes have been added too. Hope this helps!

All 2 comments

Hi @expenses! I believe if you specify PresentMode::Vsync in your SwapChainDescriptor, the swap chain will use a double-buffer and synchronise access to the swap chain textures with the display refresh rate. It's worth noting that this mode has been renamed to Fifo on master I believe and a couple of other modes have been added too. Hope this helps!

@mitchmindtree Ah, great, thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JonathanWoollett-Light picture JonathanWoollett-Light  路  4Comments

OptimisticPeach picture OptimisticPeach  路  3Comments

yutannihilation picture yutannihilation  路  4Comments

branpk picture branpk  路  3Comments

sagacity picture sagacity  路  3Comments