Skip to content

Commit

Permalink
Freezes
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaacMarovitz committed Dec 10, 2023
1 parent fd4361a commit 3f3b21d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,8 @@ impl Context {
depth_or_array_layers: 1,
},
);

self.window.request_redraw();
}

pub fn render(&mut self) -> Result<(), wgpu::SurfaceError> {
Expand Down
1 change: 0 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ async fn main() -> Result<(), impl std::error::Error> {
cpu.mem.gpu.cycle();
context.lock().unwrap().update(cpu.mem.gpu.frame_buffer.into_iter().flatten().flatten().collect());


sleep(Duration::from_millis((1000_f64 / 4_194_304_f64 * cycles as f64) as u64)).await;
}
});
Expand Down

0 comments on commit 3f3b21d

Please sign in to comment.