• Bas Nieuwenhuizen's avatar
    vulkan/wsi: Set X11 minImageCount to 3. · 4689e98f
    Bas Nieuwenhuizen authored
    For IMMEDIATE and FIFO, most games work in a pipelined manner where the
    can produce frames at a rate of 1/MAX(CPU duration, GPU duration), but
    the render latency is CPU duration + GPU duration.
    
    This means that with scanout from pageflipping we need 3 frames to run
    full speed:
    1) CPU rendering work
    2) GPU rendering work
    3) scanout
    
    Once we have a nonblocking acquire that returns a semaphore we can merge
    1 and 3. Hence the ideal implementation needs only 2 images, but games
    cannot tellwe currently do not have an ideal implementation and that
    hence they need to allocate 3 images. So let us do it for them.
    
    This is a tradeoff as it uses more memory than needed for non-fullscreen
    and non-performance intensive applications.
    
    Since this is pretty much a TODO that can use the context I added this as
    a comment.
    Acked-by: Jason Ekstrand's avatarJason Ekstrand <jason@jlekstrand.net>
    Acked-by: Samuel Pitoiset's avatarSamuel Pitoiset <samuel.pitoiset@gmail.com>
    4689e98f
Name
Last commit
Last update
.gitlab-ci Loading commit data...
bin Loading commit data...
build-support Loading commit data...
docs Loading commit data...
doxygen Loading commit data...
include Loading commit data...
scons Loading commit data...
scripts Loading commit data...
src Loading commit data...
.dir-locals.el Loading commit data...
.editorconfig Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
Android.common.mk Loading commit data...
Android.mk Loading commit data...
CleanSpec.mk Loading commit data...
README.rst Loading commit data...
REVIEWERS Loading commit data...
SConstruct Loading commit data...
VERSION Loading commit data...
appveyor.yml Loading commit data...
common.py Loading commit data...
meson.build Loading commit data...
meson_options.txt Loading commit data...