Skip to content

Commit

Permalink
temporarily make display pool pub
Browse files Browse the repository at this point in the history
  • Loading branch information
DGriffin91 committed Sep 18, 2024
1 parent 2ef2857 commit c24245d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ use {
pub struct Display {
cmd_buf_idx: usize,
cmd_bufs: Box<[CommandBuffer]>,
pool: Box<dyn ResolverPool>,
/// temporarily pub so it can be reset to workaround leak https://github.com/attackgoat/screen-13/issues/87
pub pool: Box<dyn ResolverPool>,
}

impl Display {
Expand Down
2 changes: 2 additions & 0 deletions src/graph/resolver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -617,6 +617,7 @@ impl Resolver {
},
)?;

// let start_g = std::time::Instant::now();
unsafe {
cmd_buf.device.cmd_begin_render_pass(
**cmd_buf,
Expand All @@ -641,6 +642,7 @@ impl Resolver {
vk::SubpassContents::INLINE,
);
}
// println!("{} cmd_begin_render_pass elapsed {:?}", &pass.name, start_g.elapsed()); // TODO Griffin temp leak testing https://github.com/attackgoat/screen-13/issues/87

Ok(())
})
Expand Down

0 comments on commit c24245d

Please sign in to comment.