rich refresh

This commit is contained in:
David 2026-09-18 21:16:40 +02:00
parent cfed733a36
commit dc095a63eb

View file

@ -482,6 +482,7 @@ def render(scene, width=800, height=600, samples_per_pixel=50, max_depth=15,
completed_rows += (chunk_end - chunk_start) completed_rows += (chunk_end - chunk_start)
progress.update(render_task, completed=completed_rows) progress.update(render_task, completed=completed_rows)
progress.refresh()
img = (np.clip(image, 0.0, 1.0) * 255).astype(np.uint8) img = (np.clip(image, 0.0, 1.0) * 255).astype(np.uint8)
Image.fromarray(img, 'RGB').save(preview_path) Image.fromarray(img, 'RGB').save(preview_path)