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
This commit is contained in:
Okko Hakola 2024-09-11 18:23:13 +03:00 committed by GitHub
parent 38b9aff8a8
commit db4657d0f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -146,7 +146,7 @@ fn compute_then_render(
) { ) {
// Start the frame. // Start the frame.
let before_pipeline_future = 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 app.place_over_frame
.recreate_framebuffers(swapchain_image_views) .recreate_framebuffers(swapchain_image_views)
}) { }) {

View File

@ -198,7 +198,7 @@ fn compute_then_render(
// Start the frame. // Start the frame.
let before_pipeline_future = 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 pipeline
.place_over_frame .place_over_frame
.recreate_framebuffers(swapchain_image_views) .recreate_framebuffers(swapchain_image_views)

View File

@ -331,7 +331,7 @@ fn main() -> Result<(), impl Error> {
// Begin rendering by acquiring the gpu future from the window renderer. // Begin rendering by acquiring the gpu future from the window renderer.
let previous_frame_end = 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 // Whenever the window resizes we need to recreate everything dependent
// on the window size. In this example that // on the window size. In this example that
// includes the swapchain, the framebuffers // includes the swapchain, the framebuffers