Skip to content

Commit

Permalink
fix: move wait idle after rendering to ensure all operations are comp…
Browse files Browse the repository at this point in the history
…lete
  • Loading branch information
SkillerRaptor committed Sep 18, 2024
1 parent 3bd645b commit 70fa9d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 2 additions & 0 deletions crates/hyper_engine/src/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,5 +122,7 @@ impl Engine {
// Render
self.renderer.render(&mut self.surface, &self.scene);
}

self.graphics_device.wait_idle();
}
}
6 changes: 0 additions & 6 deletions crates/hyper_render/src/renderer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,3 @@ impl Renderer {

pub fn render_ui(&self) {}
}

impl Drop for Renderer {
fn drop(&mut self) {
self.graphics_device.wait_idle();
}
}

0 comments on commit 70fa9d9

Please sign in to comment.