]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
add an option -mergeportals to speed up vis, while not making the vis data MUCH worse
authordivverent <divverent@61c419a2-8eb2-4b30-bcec-8cead039b335>
Fri, 3 Apr 2009 13:51:31 +0000 (13:51 +0000)
committerdivverent <divverent@61c419a2-8eb2-4b30-bcec-8cead039b335>
Fri, 3 Apr 2009 13:51:31 +0000 (13:51 +0000)
git-svn-id: svn://svn.icculus.org/netradiant/trunk@243 61c419a2-8eb2-4b30-bcec-8cead039b335

tools/quake3/q3map2/vis.c

index 566706a9e8c08585956e353478c3dfdfd3f9b7f6..f4b20996ee28a765c2293a9cfa1bbd9b27f4996b 100644 (file)
@@ -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" );*/