Preload disabled at startap (-p)
This commit is contained in:
parent
b80cfc783d
commit
ee233a924d
|
@ -24,6 +24,9 @@
|
||||||
History
|
History
|
||||||
|
|
||||||
$Log: not supported by cvs2svn $
|
$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
|
Revision 1.32 2005/02/03 12:35:01 ponchio
|
||||||
Patch cache -> heap
|
Patch cache -> heap
|
||||||
|
|
||||||
|
@ -224,7 +227,8 @@ int main(int argc, char *argv[]) {
|
||||||
<< "-m <ram>: max ram used\n"
|
<< "-m <ram>: max ram used\n"
|
||||||
<< "-x <ram>: max extraction size\n"
|
<< "-x <ram>: max extraction size\n"
|
||||||
<< "-r <ram>: max draw size\n"
|
<< "-r <ram>: max draw size\n"
|
||||||
<< "-d <ram>: max disk read per frame\n";
|
<< "-d <ram>: max disk read per frame\n"
|
||||||
|
<< "-p : no preload\n";
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -256,13 +260,14 @@ int main(int argc, char *argv[]) {
|
||||||
bool step = true;
|
bool step = true;
|
||||||
|
|
||||||
int option;
|
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) {
|
switch(option) {
|
||||||
case 'e': extraction.target_error = atof(optarg); break;
|
case 'e': extraction.target_error = atof(optarg); break;
|
||||||
case 'm': nexus.MaxRam() = atoi(optarg); break;
|
case 'm': nexus.MaxRam() = atoi(optarg); break;
|
||||||
case 'x': extraction.extr_max = atoi(optarg); break;
|
case 'x': extraction.extr_max = atoi(optarg); break;
|
||||||
case 'r': extraction.draw_max = atoi(optarg); break;
|
case 'r': extraction.draw_max = atoi(optarg); break;
|
||||||
case 'd': extraction.disk_max = atoi(optarg); break;
|
case 'd': extraction.disk_max = atoi(optarg); break;
|
||||||
|
case 'p': preload = false; nexus.SetPreload(preload); break;
|
||||||
default:
|
default:
|
||||||
cerr << "Unknow option.\n"; break;
|
cerr << "Unknow option.\n"; break;
|
||||||
}
|
}
|
||||||
|
@ -276,6 +281,7 @@ int main(int argc, char *argv[]) {
|
||||||
" t: toggle statistics\n"
|
" t: toggle statistics\n"
|
||||||
" b: increase memory buffer\n"
|
" b: increase memory buffer\n"
|
||||||
" B: decrease memory buffer\n"
|
" B: decrease memory buffer\n"
|
||||||
|
" s: toggle preload\n"
|
||||||
|
|
||||||
" d: debug mode (show patches colored)\n"
|
" d: debug mode (show patches colored)\n"
|
||||||
" f: flat shading mode\n"
|
" f: flat shading mode\n"
|
||||||
|
|
Loading…
Reference in New Issue