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.
This commit is contained in:
@@ -1370,7 +1370,6 @@ void scenes::lobby::on_unfocused()
|
||||
right_hand.reset();
|
||||
face_tracker.emplace<std::monostate>();
|
||||
|
||||
clear_swapchains();
|
||||
multicast.reset();
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user