SetPresentMode

Description

Controls when the Swap and Sync commands present the back buffer to the screen. This can either be delayed (mode=0) or immediate (mode=1), the default is immediate. Immediate mode has the lowest latency but some implementations of Vulkan have a performance hit if they try to present immediately after finishing drawing to the back buffer, so delayed mode should give more consistent performance. In delayed mode the Sync command will first present the previous frame to the screen and then draw the current frame. The current frame will not be presented until the next call to Sync. This is particularly apparent during loading screens where if you update the loading bar and then call Sync() the new loading bar would not immediately appear on screen when using delayed mode.

Definition

SetPresentMode( mode )

Parameters