Splitscreen: the drain waits for the submit thread, not the device

This commit is contained in:
makscoder committed 2026-11-05 12:13:42 +03:00
1 parent b21c3fb1ca
commit 9fe888b76c
1 file changed
+3 -2
+3 -2
View File
@@ -575,8 +575,9 @@ impl<'a> Split<'a> {
}
presented
}
/// Every player's frame submitted and the device idle: before anything reconfigures a
/// surface, whose wait for the GPU breaks on a submission made while it waits.
/// Every player's frame submitted by its submit thread, no device wait: before
/// anything reconfigures a surface, whose wait for the GPU breaks on a submission
/// made while it waits.
fn wait_queues(&mut self) {
let renderers = std::iter::once(&mut self.host.renderer)
.chain(self.guests.iter_mut().map(|g| &mut g.game.renderer));