Only dispatch each workgroup not pixel

This commit is contained in:
Dennis Kobert
2023-06-26 21:08:43 +02:00
committed by Keavon Chambers
parent 215589ff49
commit edb33e0c82
8 changed files with 1076 additions and 75 deletions

View File

@@ -44,7 +44,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
let device = application_io.gpu_executor().unwrap().context.device.clone();
std::thread::spawn(move || loop {
std::thread::sleep(std::time::Duration::from_millis(1));
std::thread::sleep(std::time::Duration::from_nanos(1));
device.poll(wgpu::Maintain::Poll);
});