Skip to content

Commit

Permalink
gpu: do not show window until initialization complete
Browse files Browse the repository at this point in the history
some new versions of gnome has bug, after long delay it thinks that window still freezed even if it responses
  • Loading branch information
DHrpcs3 committed Nov 1, 2024
1 parent 4bccf99 commit c90eb84
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rpcsx/gpu/Device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ static vk::Context createVkContext(Device *device) {
createWindow();
#endif

glfwHideWindow(device->window);

const char **glfwExtensions;
uint32_t glfwExtensionCount = 0;
glfwExtensions = glfwGetRequiredInstanceExtensions(&glfwExtensionCount);
Expand Down Expand Up @@ -345,6 +347,8 @@ void Device::start() {
uint32_t gpIndex = -1;
GLFWgamepadstate gpState;

glfwShowWindow(window);

while (true) {
glfwPollEvents();

Expand Down

0 comments on commit c90eb84

Please sign in to comment.