This changes the fallback priority for present mode from eMailbox -> eFifo -> eImmediate to eMailbox -> eImmediate -> eFifo. By setting eFifo (vsync mode) as the lowest priority/last fallback option, the --vsync <ON|OFF> command line switch can function in all environments where eMailbox or eImmediate mode is available. It also has the effect of making the default (no command line option) mode either eMailbox or eImmediate (i.e. non vsync) which should be beneficial for comparing performance overlay stats in the samples.
[ ] I have stated on what implementation the sample has been tested so that others can test on different implementations and platforms
[ ] Any dependent assets have been merged and published in downstream modules
[ ] For new samples, I have added a paragraph with a summary to the appropriate chapter in the readme of the folder that the sample belongs to e.g. api samples readme
[ ] For new samples, I have added a tutorial README.md file to guide users through what they need to know to implement code using this feature. For example, see conditional_rendering
[ ] For new samples, I have added a link to the Antora navigation so that the sample will be listed at the Vulkan documentation site
Description
This changes the fallback priority for present mode from
eMailbox -> eFifo -> eImmediate
toeMailbox -> eImmediate -> eFifo
. By settingeFifo
(vsync mode) as the lowest priority/last fallback option, the--vsync <ON|OFF>
command line switch can function in all environments whereeMailbox
oreImmediate
mode is available. It also has the effect of making the default (no command line option) mode eithereMailbox
oreImmediate
(i.e. non vsync) which should be beneficial for comparing performance overlay stats in the samples.Fixes #1159
General Checklist:
Please ensure the following points are checked:
[x] This PR describes the scope and expected impact of the changes I am making
Note: The Samples CI runs a number of checks including:
If this PR contains framework changes:
batch
command line argument to make sure all samples still work properlySample Checklist
If your PR contains a new or modified sample, these further checks must be carried out in addition to the General Checklist: