From db4657d0f0e6e97a0ccec61a75026931df7bb56e Mon Sep 17 00:00:00 2001 From: Okko Hakola Date: Wed, 11 Sep 2024 18:23:13 +0300 Subject: [PATCH] See if 0 (but not None) timeout would solve crash (#2543) * See if 0 (but not None) timeout would solve crash * Try 1 sec timeout --- examples/interactive-fractal/main.rs | 2 +- examples/multi-window-game-of-life/main.rs | 2 +- examples/triangle-util/main.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/interactive-fractal/main.rs b/examples/interactive-fractal/main.rs index 92a06cd61..cafb746f7 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(1000)), |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 44779c2d3..d51badf1a 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(1000)), |swapchain_image_views| { pipeline .place_over_frame .recreate_framebuffers(swapchain_image_views) diff --git a/examples/triangle-util/main.rs b/examples/triangle-util/main.rs index 3297b5a05..731209ead 100644 --- a/examples/triangle-util/main.rs +++ b/examples/triangle-util/main.rs @@ -331,7 +331,7 @@ fn main() -> Result<(), impl Error> { // Begin rendering by acquiring the gpu future from the window renderer. let previous_frame_end = window_renderer - .acquire(Some(Duration::from_millis(1)), |swapchain_images| { + .acquire(Some(Duration::from_millis(1000)), |swapchain_images| { // Whenever the window resizes we need to recreate everything dependent // on the window size. In this example that // includes the swapchain, the framebuffers