summaryrefslogtreecommitdiffstats
path: root/dimension/main.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-02-23 15:08:22 -0500
committerTavian Barnes <tavianator@gmail.com>2010-02-23 15:08:22 -0500
commit64294f4ac5b1b41e95f20a827c2aead301becb92 (patch)
treeb116b3bd71f634de1bec72b2d60501285e13071d /dimension/main.c
parentc76c0f017fa884c4b9a04ff7fa3b43d331c82d84 (diff)
downloaddimension-64294f4ac5b1b41e95f20a827c2aead301becb92.tar.xz
Make progress bars better.
Diffstat (limited to 'dimension/main.c')
-rw-r--r--dimension/main.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/dimension/main.c b/dimension/main.c
index fa7f5a6..cc140fd 100644
--- a/dimension/main.c
+++ b/dimension/main.c
@@ -196,7 +196,7 @@ main(int argc, char **argv) {
}
/* Realize the input */
- printf("Parsing scene ...\n");
+ printf("Parsing scene ...\n");
dmnsn_scene *scene = dmnsn_realize(input_file, symtable);
if (!scene) {
fprintf(stderr, "Error realizing input file!\n");
@@ -242,7 +242,8 @@ main(int argc, char **argv) {
return EXIT_FAILURE;
}
- dmnsn_progressbar("Rendering scene ", render_progress);
+ dmnsn_progressbar("Rendering scene with %u threads", render_progress,
+ scene->nthreads);
if (dmnsn_finish_progress(render_progress) != 0) {
dmnsn_delete_scene(scene);
@@ -259,7 +260,7 @@ main(int argc, char **argv) {
return EXIT_FAILURE;
}
- dmnsn_progressbar("Writing PNG ", output_progress);
+ dmnsn_progressbar("Writing PNG", output_progress);
if (dmnsn_finish_progress(output_progress) != 0) {
fclose(output_file);