rtiow: extend progress interval from 1s -> 5s.
This commit is contained in:
parent
f73a471cb6
commit
a2f9166b5a
@ -390,6 +390,7 @@ fn progress(
|
|||||||
enum Request {
|
enum Request {
|
||||||
Pixel { x: usize, y: usize },
|
Pixel { x: usize, y: usize },
|
||||||
Line { width: usize, y: usize },
|
Line { width: usize, y: usize },
|
||||||
|
// TODO(wathiede): add Cohort that does 4x4 or 8x8 pixel chunks.
|
||||||
}
|
}
|
||||||
|
|
||||||
enum Response {
|
enum Response {
|
||||||
@ -596,7 +597,7 @@ pub fn render(scene: Scene, output_dir: &Path) -> std::result::Result<(), std::i
|
|||||||
|
|
||||||
let now = time::Instant::now();
|
let now = time::Instant::now();
|
||||||
let time_diff = now - last_time;
|
let time_diff = now - last_time;
|
||||||
if time_diff > time::Duration::from_secs(1) {
|
if time_diff > time::Duration::from_secs(5) {
|
||||||
println!(
|
println!(
|
||||||
"{}",
|
"{}",
|
||||||
progress(
|
progress(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user