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:
parent
444af8c46a
commit
9851662e8d
|
|
@ -1046,6 +1046,9 @@ int VisMain (int argc, char **argv)
|
||||||
} else if (!strcmp(argv[i], "-merge")) {
|
} else if (!strcmp(argv[i], "-merge")) {
|
||||||
Sys_Printf ("merge = true\n");
|
Sys_Printf ("merge = true\n");
|
||||||
mergevis = qtrue;
|
mergevis = qtrue;
|
||||||
|
} else if (!strcmp(argv[i], "-mergeportals")) {
|
||||||
|
Sys_Printf ("mergeportals = true\n");
|
||||||
|
mergevisportals = qtrue;
|
||||||
} else if (!strcmp(argv[i], "-nopassage")) {
|
} else if (!strcmp(argv[i], "-nopassage")) {
|
||||||
Sys_Printf ("nopassage = true\n");
|
Sys_Printf ("nopassage = true\n");
|
||||||
noPassageVis = qtrue;
|
noPassageVis = qtrue;
|
||||||
|
|
@ -1112,10 +1115,10 @@ int VisMain (int argc, char **argv)
|
||||||
UnparseEntities();
|
UnparseEntities();
|
||||||
|
|
||||||
if( mergevis )
|
if( mergevis )
|
||||||
{
|
|
||||||
MergeLeaves();
|
MergeLeaves();
|
||||||
|
|
||||||
|
if( mergevis || mergevisportals )
|
||||||
MergeLeafPortals();
|
MergeLeafPortals();
|
||||||
}
|
|
||||||
|
|
||||||
CountActivePortals();
|
CountActivePortals();
|
||||||
/* WritePortals( "maps/hints.prs" );*/
|
/* WritePortals( "maps/hints.prs" );*/
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user