From: divverent Date: Fri, 3 Apr 2009 13:51:31 +0000 (+0000) Subject: add an option -mergeportals to speed up vis, while not making the vis data MUCH worse X-Git-Tag: svn-r421~177 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9851662e8df96755d94fc87341572c0842199d08;p=xonotic%2Fnetradiant.git 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 --- diff --git a/tools/quake3/q3map2/vis.c b/tools/quake3/q3map2/vis.c index 566706a9..f4b20996 100644 --- a/tools/quake3/q3map2/vis.c +++ b/tools/quake3/q3map2/vis.c @@ -1046,6 +1046,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"); noPassageVis = qtrue; @@ -1112,10 +1115,10 @@ int VisMain (int argc, char **argv) UnparseEntities(); if( mergevis ) - { MergeLeaves(); + + if( mergevis || mergevisportals ) MergeLeafPortals(); - } CountActivePortals(); /* WritePortals( "maps/hints.prs" );*/