Skip to content

Commit

Permalink
Fix hang when changing resolution with DXVK.
Browse files Browse the repository at this point in the history
rohit-n authored and Katana-Steel committed Apr 18, 2023
1 parent ea982ce commit 7e1a2fb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions runtime/kernel/src/sys/linux/linuxdsys.cpp
Original file line number Diff line number Diff line change
@@ -265,6 +265,9 @@ LTRESULT dsi_SetRenderMode(RMode *pMode, const char *pName)

memcpy(&currentMode, &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.

0 comments on commit 7e1a2fb

Please sign in to comment.