Use up to 4 images for IMMEDIATE flip
The following discussion from !7033 (merged) should be addressed:
-
@Oschowa started a discussion: (+1 comment) Something similar might also be needed for the x11 vulkan wsi, I think. With gnome 3.38 on wayland with direct scan-out support, vkcube running on xwayland with IMMEDIATE present mode renders about 10 times less fps when it gets unredirected and has oscillating frametimes vs. when it's window is composited. With MAILBOX present mode (which iirc uses 5 images on Mesa WSI), the fps don't suffer when unredirected, but since most games choose IMMEDIATE present mode when vsync is disabled, it should not cause such a severe performance regression.