From 5970586f879d742c0d517baff80b28d26b5a8553 Mon Sep 17 00:00:00 2001 From: Okko Hakola Date: Wed, 3 Jul 2024 14:40:21 +0300 Subject: [PATCH] See if 0 (but not None) timeout would solve crash --- examples/interactive-fractal/main.rs | 2 +- examples/multi-window-game-of-life/main.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/interactive-fractal/main.rs b/examples/interactive-fractal/main.rs index 92a06cd615..887d56878d 100644 --- a/examples/interactive-fractal/main.rs +++ b/examples/interactive-fractal/main.rs @@ -146,7 +146,7 @@ fn compute_then_render( ) { // Start the frame. let before_pipeline_future = - match renderer.acquire(Some(Duration::from_millis(1)), |swapchain_image_views| { + match renderer.acquire(Some(Duration::from_millis(0)), |swapchain_image_views| { app.place_over_frame .recreate_framebuffers(swapchain_image_views) }) { diff --git a/examples/multi-window-game-of-life/main.rs b/examples/multi-window-game-of-life/main.rs index 44779c2d3b..353bfeb131 100644 --- a/examples/multi-window-game-of-life/main.rs +++ b/examples/multi-window-game-of-life/main.rs @@ -198,7 +198,7 @@ fn compute_then_render( // Start the frame. let before_pipeline_future = - match window_renderer.acquire(Some(Duration::from_millis(1)), |swapchain_image_views| { + match window_renderer.acquire(Some(Duration::from_millis(0)), |swapchain_image_views| { pipeline .place_over_frame .recreate_framebuffers(swapchain_image_views)