From 7e1a2fb46b8af1ead782fd9372e33efb7c385719 Mon Sep 17 00:00:00 2001 From: Rohit Nirmal Date: Sat, 8 Apr 2023 00:14:57 -0500 Subject: [PATCH] Fix hang when changing resolution with DXVK. --- runtime/kernel/src/sys/linux/linuxdsys.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/runtime/kernel/src/sys/linux/linuxdsys.cpp b/runtime/kernel/src/sys/linux/linuxdsys.cpp index de62158d..671a395e 100644 --- a/runtime/kernel/src/sys/linux/linuxdsys.cpp +++ b/runtime/kernel/src/sys/linux/linuxdsys.cpp @@ -265,6 +265,9 @@ LTRESULT dsi_SetRenderMode(RMode *pMode, const char *pName) memcpy(¤tMode, &g_RMode, sizeof(RMode)); + //Done to prevent DXVK from hanging + SDL_Delay(100); + // Try to set the new mode. if (r_InitRender(pMode, pName) != LT_OK) { // Ok, try to restore the old mode.