From 9851662e8df96755d94fc87341572c0842199d08 Mon Sep 17 00:00:00 2001 From: divverent Date: Fri, 3 Apr 2009 13:51:31 +0000 Subject: [PATCH] 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 --- tools/quake3/q3map2/vis.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tools/quake3/q3map2/vis.c b/tools/quake3/q3map2/vis.c index 566706a..f4b2099 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" );*/ -- 2.39.2