mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2024-11-22 06:45:23 +00:00
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:
parent
38b9aff8a8
commit
db4657d0f0
@ -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)
|
||||||
}) {
|
}) {
|
||||||
|
@ -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)
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user