Skip to content

Commit

Permalink
See if 0 (but not None) timeout would solve crash (#2543)
Browse files Browse the repository at this point in the history
* See if 0 (but not None) timeout would solve crash

* Try 1 sec timeout
  • Loading branch information
hakolao authored Sep 11, 2024
1 parent 38b9aff commit db4657d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/interactive-fractal/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}) {
Expand Down
2 changes: 1 addition & 1 deletion examples/multi-window-game-of-life/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion examples/triangle-util/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit db4657d

Please sign in to comment.