add an option -mergeportals to speed up vis, while not making the vis data MUCH worse

git-svn-id: svn://svn.icculus.org/netradiant/trunk@243 61c419a2-8eb2-4b30-bcec-8cead039b335
This commit is contained in:
divverent 2009-04-03 13:51:31 +00:00 committed by Thomas Debesse
parent 23807ef4b3
commit 9a44eb324f

View file

@ -1086,6 +1086,9 @@ int VisMain( int argc, char **argv ){
else if ( !strcmp( argv[i], "-merge" ) ) {
Sys_Printf( "merge = true\n" );
mergevis = qtrue;
} else if (!strcmp(argv[i], "-mergeportals")) {
Sys_Printf ("mergeportals = true\n");
mergevisportals = qtrue;
}
else if ( !strcmp( argv[i], "-nopassage" ) ) {
Sys_Printf( "nopassage = true\n" );
@ -1150,9 +1153,12 @@ int VisMain( int argc, char **argv ){
/* ydnar: for getting far plane */
ParseEntities();
if ( mergevis ) {
if( mergevis ) {
MergeLeaves();
}
if( mergevis || mergevisportals ) {
MergeLeafPortals();
}