From ee233a924d33101cc41932eb3de55b1fca7b22df Mon Sep 17 00:00:00 2001 From: ponchio Date: Mon, 14 Feb 2005 14:21:24 +0000 Subject: [PATCH] Preload disabled at startap (-p) --- apps/nexus/nexusview.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/apps/nexus/nexusview.cpp b/apps/nexus/nexusview.cpp index 6d2cb03b..889d96ae 100644 --- a/apps/nexus/nexusview.cpp +++ b/apps/nexus/nexusview.cpp @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.33 2005/02/10 09:18:20 ponchio +Statistics. + Revision 1.32 2005/02/03 12:35:01 ponchio Patch cache -> heap @@ -224,7 +227,8 @@ int main(int argc, char *argv[]) { << "-m : max ram used\n" << "-x : max extraction size\n" << "-r : max draw size\n" - << "-d : max disk read per frame\n"; + << "-d : max disk read per frame\n" + << "-p : no preload\n"; return -1; } @@ -256,13 +260,14 @@ int main(int argc, char *argv[]) { bool step = true; int option; - while((option = getopt(argc, argv, "e:m:x:r:d:")) != EOF) { + while((option = getopt(argc, argv, "e:m:x:r:d:p")) != EOF) { switch(option) { case 'e': extraction.target_error = atof(optarg); break; case 'm': nexus.MaxRam() = atoi(optarg); break; case 'x': extraction.extr_max = atoi(optarg); break; case 'r': extraction.draw_max = atoi(optarg); break; case 'd': extraction.disk_max = atoi(optarg); break; + case 'p': preload = false; nexus.SetPreload(preload); break; default: cerr << "Unknow option.\n"; break; } @@ -276,6 +281,7 @@ int main(int argc, char *argv[]) { " t: toggle statistics\n" " b: increase memory buffer\n" " B: decrease memory buffer\n" + " s: toggle preload\n" " d: debug mode (show patches colored)\n" " f: flat shading mode\n"