From 9454c34cc2c9535c463577a4758f0aa77603b3a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Capucho?= Date: Wed, 16 Jun 2021 20:22:33 +0100 Subject: [PATCH] Submit queue when maintaining and minimized --- voxygen/src/render/renderer.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/voxygen/src/render/renderer.rs b/voxygen/src/render/renderer.rs index f917a83e2a..b43e7cb2e8 100644 --- a/voxygen/src/render/renderer.rs +++ b/voxygen/src/render/renderer.rs @@ -600,7 +600,13 @@ impl Renderer { Ok(()) } - pub fn maintain(&self) { self.device.poll(wgpu::Maintain::Poll) } + pub fn maintain(&self) { + if self.is_minimized { + self.queue.submit(std::iter::empty()); + } + + self.device.poll(wgpu::Maintain::Poll) + } /// Create render target views fn create_rt_views(