RetroArch
RetroArch copied to clipboard
[Vulkan video] Duplicated frames cause a black screen
Description
Sending duplicated frames from the cores cause a black screen. When using the Vulkan driver in RetroArch, frame duping can result in a black screen until the next input that causes a new frame to be rendered. This happens when RetroArch does a video driver reinit. For example when switching RetroArch from fullscreen to windowed or vice versa. Or when the core requests a reinit through RETRO_ENVIRONMENT_SET_SYSTEM_AV_INFO.
Expected behavior
Sending duplicate frames with the Vulkan driver, or doing a video driver reinit, Retroarch should show the content on screen, just like with the GL driver.
Actual behavior
Sending duplicate frames with the Vulkan driver, or doing a video driver reinit, Retroarch shows a black screen until a new frame is sent.
Steps to reproduce the bug
Happens on both beetle-psx and dosbox-core when frame-dupping is enable. So, for example on the dosbox-core core with the Vulkan driver set as video driver:
- Load the dosbox-core core
- Load SuperFrog
- You will be on a black screen until you enter a value or press a key that causes a new different frame to be sent.
Bisect Results
In theory it has always happened with the Vulkan driver. Does not happen with the GL driver.
Version/Commit
You can find this information under Information/System Information
- RetroArch: 1.9.14 stable, and also current GIT code.
Environment information
- OS: GNU/Linux (X11, KMSDRM, Wayland)
- Compiler: gcc version 10.2.1 (Debian 10.2.1-6)
Related bugs
https://github.com/realnc/dosbox-core/issues/36
@realnc Is this still an issue or not? If so, how do we reproduce this?
@realnc Is this still an issue or not? If so, how do we reproduce this?
@LibretroAdmin It's still an issue. Also, it happens with glcore as well, but only when toggling fullscreen on/off.
To reproduce, just run Superfrog. The screen will flash-in once and then the image will go black with vulkan until you press a key. With glcore, it will show normally, but will go black if you toggle fullscreen mode in RA.
PRs welcome for this. I tried asking @Themaister but have not gotten a response.
@vanfanel Is it still an issue or can we close this issue ? Thank you.
@vanfanel Is it still an issue or can we close this issue ? Thank you.
This is still an issue, yes.