From b96833cc9bef21155da6bd4166a6a0113c540ea3 Mon Sep 17 00:00:00 2001 From: caszuu Date: Wed, 25 Feb 2026 22:05:01 +0100 Subject: [PATCH] semi-workaround for quest gpu memory corruption From pure trial and error, is seems that swapchain management on the quest platform is broken. After a swapchain is destroyed, there is a _chance_ the next created swapchain will be unusable. This seems to happen no matter what, where or when the client decides to clean up its resources and the safest bet is to not recreate swapchains much. --- client/scenes/lobby.cpp | 1 - client/scenes/stream.cpp | 1 - 2 files changed, 2 deletions(-) diff --git a/client/scenes/lobby.cpp b/client/scenes/lobby.cpp index cac6bfcf..957ec061 100644 --- a/client/scenes/lobby.cpp +++ b/client/scenes/lobby.cpp @@ -1370,7 +1370,6 @@ void scenes::lobby::on_unfocused() right_hand.reset(); face_tracker.emplace(); - clear_swapchains(); multicast.reset(); } diff --git a/client/scenes/stream.cpp b/client/scenes/stream.cpp index 5c950f8a..e6f16c5d 100644 --- a/client/scenes/stream.cpp +++ b/client/scenes/stream.cpp @@ -528,7 +528,6 @@ void scenes::stream::on_unfocused() renderer->wait_idle(); // Must be before the scene data because the renderer uses its descriptor sets; world.clear(); input.reset(); - clear_swapchains(); left_hand.reset(); right_hand.reset(); apps.reset();