mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2024-11-10 07:11:54 +00:00
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
23807ef4b3
commit
9a44eb324f
1 changed files with 8 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue