]> de.git.xonotic.org Git - xonotic/netradiant.git/commitdiff
q3map2/bsp: introduce -fastmeta option 156/head
authorThomas Debesse <dev@illwieckz.net>
Sun, 22 Sep 2019 08:48:48 +0000 (10:48 +0200)
committerThomas Debesse <dev@illwieckz.net>
Sun, 13 Oct 2019 02:19:57 +0000 (04:19 +0200)
set lightmap and surface verts and indexes values like quake3, known to be fast

equivalent to:
-maxlightmapverts 64 -maxsurfaceverts 999 -maxsurfaceindexes 6000

tools/quake3/q3map2/bsp.c
tools/quake3/q3map2/help.c

index 0c1a6bd44fe57208b01a6433e5f81ae4388a1fe1..b3c28002aaf5c91c4df3e6d41142d7a08d4a22ed 100644 (file)
@@ -828,6 +828,14 @@ int BSPMain( int argc, char **argv ){
                        i++;
                        Sys_Printf( "Distance epsilon set to %f\n", distanceEpsilon );
                }
+               else if ( !strcmp( argv[ i ], "-fastmeta" ) ) {
+                       maxLMSurfaceVerts = 64;
+                       maxSurfaceVerts = 999;
+                       maxSurfaceIndexes = 6000;
+                       Sys_Printf( "Maximum per-surface vertex count set to %d\n", maxSurfaceVerts );
+                       Sys_Printf( "Maximum per-surface index count set to %d\n", maxSurfaceIndexes );
+                       Sys_Printf( "Maximum lightmapped surface vertex count set to %d\n", maxLMSurfaceVerts );
+               }
                else if ( !strcmp( argv[ i ], "-maxsurfacevertices" ) ) {
                        maxSurfaceVerts = atoi( argv[ i + 1 ] );
                        if ( maxSurfaceVerts < 3 ) {
index 7c05b32649b50cfcb5783c8c0f218de341ad3bd5..8228474336636bd144c5cc305e9c9b39b476d2d7 100644 (file)
@@ -97,6 +97,7 @@ void HelpBsp()
                {"-deep", "Use detail brushes in the BSP tree, but at lowest priority (should give more fps)"},
                {"-de <F>", "Distance epsilon for plane snapping etc."},
                {"-fakemap", "Write fakemap.map containing all world brushes"},
+               {"-fastmeta", "Use small lightmap/surface verts/number maximum numbers (like Q3A), to be used with `-meta`"},
                {"-flares", "Turn on support for flares"},
                {"-flat", "Enable flat shading (good for combining with -celshader)"},
                {"-fulldetail", "Treat detail brushes as structural ones"},