Better progress output
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
fa02334c78
commit
b51b94e0b6
@ -339,8 +339,7 @@ pub fn render(scene: Scene, output_dir: &Path) -> std::result::Result<(), std::i
|
|||||||
let time_diff = now - last_time;
|
let time_diff = now - last_time;
|
||||||
let pixel_diff = pixel_count - last_pixel_count;
|
let pixel_diff = pixel_count - last_pixel_count;
|
||||||
info!(
|
info!(
|
||||||
"Woke up {}s passed, {} pixels rendered {} p/s",
|
"{} pixels rendered {} p/s",
|
||||||
time_diff.as_secs_f64(),
|
|
||||||
pixel_count,
|
pixel_count,
|
||||||
pixel_diff as u64 / time_diff.as_secs()
|
pixel_diff as u64 / time_diff.as_secs()
|
||||||
);
|
);
|
||||||
@ -350,7 +349,6 @@ pub fn render(scene: Scene, output_dir: &Path) -> std::result::Result<(), std::i
|
|||||||
});
|
});
|
||||||
|
|
||||||
println!("Rendering with {} subsamples", scene.subsamples);
|
println!("Rendering with {} subsamples", scene.subsamples);
|
||||||
info!("PIXEL_COUNT {} ", PIXEL_COUNT.load(Ordering::SeqCst));
|
|
||||||
let mut img = RgbImage::new(scene.width as u32, scene.height as u32);
|
let mut img = RgbImage::new(scene.width as u32, scene.height as u32);
|
||||||
let total = scene.width * scene.height;
|
let total = scene.width * scene.height;
|
||||||
let mut cur_pixel = 0;
|
let mut cur_pixel = 0;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user