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 0c1a6bd..b3c2800 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 7c05b32..8228474 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"},