mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2025-01-10 12:01:10 +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" ) ) {
|
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" );
|
||||||
|
@ -1151,8 +1154,11 @@ int VisMain( int argc, char **argv ){
|
||||||
/* ydnar: for getting far plane */
|
/* ydnar: for getting far plane */
|
||||||
ParseEntities();
|
ParseEntities();
|
||||||
|
|
||||||
if ( mergevis ) {
|
if( mergevis ) {
|
||||||
MergeLeaves();
|
MergeLeaves();
|
||||||
|
}
|
||||||
|
|
||||||
|
if( mergevis || mergevisportals ) {
|
||||||
MergeLeafPortals();
|
MergeLeafPortals();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue