mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-18 20:36:04 +00:00
fix(game-env): DOOM (2016) keeps the swapchain image count it asks for (#1987)
DOOM (2016) asks for exactly two swapchain images and stops with "FATAL ERROR: getSwapchainImagesKHR failed with error (VK_SUCCESS)" when it gets more. Every game launch gets GAMESCOPE_WSI_MIN_IMAGE_COUNT=8 and GAMESCOPE_WSI_ENSURE_MIN_IMAGE_COUNT=1, so gamescope's WSI layer gave it 8 images (3 with only the count removed) and the game crashed on start. When DOOMx64vk.exe sits beside the launched program (DOOMx64.exe for a GOG install, or DOOMx64vk.exe), both variables are removed and vk_x11_strict_image_count=true is set, the option Mesa's driconf gives the game. Other games keep the defaults. A per-game value in the environment editor still wins. Tested on an AYANEO Pocket FIT with DroidDeck 0.6.9 and the same values set per game: the swapchain gets 2 images and the game reaches its main menu at 60 fps; before, it crashed on every launch.
This commit is contained in:
1 parent
84a04d9ead
commit
40dfcd94f9
3 files changed
+50
No files matched your search
@@ -113,6 +113,13 @@ same WSI layer, and with eight images and no frame limit it drew flat out
|
||||
(about 240 frames a second at 120 Hz) and heated the device. Values set in the
|
||||
launch options or the environment editor are kept.
|
||||
|
||||
DOOM (2016) is the exception (`DOOMx64vk.exe` beside the launched program, which
|
||||
is `DOOMx64.exe` for a GOG install). It asks for exactly two images and stops with
|
||||
`FATAL ERROR: getSwapchainImagesKHR failed with error (VK_SUCCESS)` when it gets
|
||||
more, so its fix removes both variables, also from its launch options, and sets
|
||||
`vk_x11_strict_image_count=true`, the option Mesa's driconf gives the game. A
|
||||
per-game value in the environment editor still wins.
|
||||
|
||||
## Defaults and available suggestions
|
||||
|
||||
The initial configuration enables Mesa shader caching with
|
||||
|
||||
Reference in new issue
Block a user