]> de.git.xonotic.org Git - xonotic/netradiant.git/commitdiff
Merge commit '93ca259313e7902e89974877f4110fc818e9208b' into garux-merge
authorThomas Debesse <dev@illwieckz.net>
Mon, 22 Feb 2021 21:56:53 +0000 (22:56 +0100)
committerThomas Debesse <dev@illwieckz.net>
Mon, 22 Feb 2021 21:56:53 +0000 (22:56 +0100)
1  2 
tools/quake3/q3map2/help.c
tools/quake3/q3map2/light.c
tools/quake3/q3map2/light_trace.c
tools/quake3/q3map2/lightmaps_ydnar.c
tools/quake3/q3map2/model.c
tools/quake3/q3map2/surface.c

Simple merge
index 100bed593a748c7e0e2657ce235b08ab6eef5d7a,d6916367188190b037caaf0b75fd90db07ca1b31..7d3be10e592df2b826ec280ea1f336f374ef0707
@@@ -2119,8 -2113,9 +2119,8 @@@ int LightMain( int argc, char **argv )
        const char  *value;
        int lightmapMergeSize = 0;
        qboolean lightSamplesInsist = qfalse;
-       qboolean fastAllocate = qfalse;
+       qboolean fastAllocate = qtrue;
  
 -
        /* note it */
        Sys_Printf( "--- Light ---\n" );
        Sys_Printf( "--- ProcessGameSpecific ---\n" );
                        Sys_Printf( "Faster mode enabled\n" );
                }
  
 -//            else if ( !strcmp( argv[ i ], "-fastallocate" ) ) {
 -//                    fastAllocate = qtrue;
 -//                    Sys_Printf( "Fast allocation mode enabled\n" );
 -//            }
 +              else if ( !strcmp( argv[ i ], "-fastallocate" ) ) {
 +                      fastAllocate = qtrue;
 +                      Sys_Printf( "Fast allocation mode enabled\n" );
 +              }
 +
+               else if ( !strcmp( argv[ i ], "-slowallocate" ) ) {
+                       fastAllocate = qfalse;
+                       Sys_Printf( "Slow allocation mode enabled\n" );
+               }
                else if ( !strcmp( argv[ i ], "-fastgrid" ) ) {
                        fastgrid = qtrue;
                        Sys_Printf( "Fast grid lighting enabled\n" );
Simple merge
index ea36b921f8bd6a41b75be713a64286de5ae7019c,c1c9ced0ffbd9c2e45011d863ef8dd850aabf888..6d61b8d7be998c8e83762df7d17b75935f233c6b
@@@ -2530,8 -2537,10 +2538,10 @@@ void StoreSurfaceLightmaps( qboolean fa
           ----------------------------------------------------------------- */
  
        /* note it */
 -      Sys_Printf( "Subsampling..." );
 +      Sys_FPrintf( SYS_VRB, "Subsampling..." );
  
+       timer_start = I_FloatTime();
        /* walk the list of raw lightmaps */
        numUsed = 0;
        numTwins = 0;
                }
        }
  
 -      Sys_Printf( "%d.", (int) ( I_FloatTime() - timer_start ) );
++      Sys_FPrintf( SYS_VRB, "%d.", (int) ( I_FloatTime() - timer_start ) );
        /* -----------------------------------------------------------------
           convert modelspace deluxemaps to tangentspace
           ----------------------------------------------------------------- */
                                        }
                                }
                        }
 -                      Sys_Printf( "%d.", (int) ( I_FloatTime() - timer_start ) );
++                      Sys_FPrintf( SYS_VRB, "%d.", (int) ( I_FloatTime() - timer_start ) );
                }
        }
  
  
        if ( noCollapse == qfalse && deluxemap == qfalse ) {
                /* note it */
 -              Sys_Printf( "collapsing..." );
 +              Sys_FPrintf( SYS_VRB, "collapsing..." );
  
+               timer_start = I_FloatTime();
                /* set all twin refs to null */
                for ( i = 0; i < numRawLightmaps; i++ )
                {
                                }
                        }
                }
 -              Sys_Printf( "%d.", (int) ( I_FloatTime() - timer_start ) );
++              Sys_FPrintf( SYS_VRB, "%d.", (int) ( I_FloatTime() - timer_start ) );
        }
  
        /* -----------------------------------------------------------------
           ----------------------------------------------------------------- */
  
        /* note it */
 -      Sys_Printf( "sorting..." );
 +      Sys_FPrintf( SYS_VRB, "sorting..." );
  
+       timer_start = I_FloatTime();
        /* allocate a new sorted list */
        if ( sortLightmaps == NULL ) {
                sortLightmaps = safe_malloc( numRawLightmaps * sizeof( int ) );
                sortLightmaps[ i ] = i;
        qsort( sortLightmaps, numRawLightmaps, sizeof( int ), CompareRawLightmap );
  
 -      Sys_Printf( "%d.", (int) ( I_FloatTime() - timer_start ) );
++      Sys_FPrintf( SYS_VRB, "%d.", (int) ( I_FloatTime() - timer_start ) );
        /* -----------------------------------------------------------------
           allocate output lightmaps
           ----------------------------------------------------------------- */
  
        /* note it */
 -      Sys_Printf( "allocating..." );
 +      Sys_FPrintf( SYS_VRB, "allocating..." );
  
+       timer_start = I_FloatTime();
        /* kill all existing output lightmaps */
        if ( outLightmaps != NULL ) {
                for ( i = 0; i < numOutLightmaps; i++ )
                }
        }
  
 -      Sys_Printf( "%d.", (int) ( I_FloatTime() - timer_start ) );
++      Sys_FPrintf( SYS_VRB, "%d.", (int) ( I_FloatTime() - timer_start ) );
        /* -----------------------------------------------------------------
           store output lightmaps
           ----------------------------------------------------------------- */
  
        /* note it */
 -      Sys_Printf( "storing..." );
 +      Sys_FPrintf( SYS_VRB, "storing..." );
  
+       timer_start = I_FloatTime();
        /* count the bsp lightmaps and allocate space */
        if ( bspLightBytes != NULL ) {
                free( bspLightBytes );
                remove( filename );
        }
  
 -      Sys_Printf( "%d.", (int) ( I_FloatTime() - timer_start ) );
++      Sys_FPrintf( SYS_VRB, "%d.", (int) ( I_FloatTime() - timer_start ) );
        /* -----------------------------------------------------------------
           project the lightmaps onto the bsp surfaces
           ----------------------------------------------------------------- */
  
        /* note it */
 -      Sys_Printf( "projecting..." );
 +      Sys_FPrintf( SYS_VRB, "projecting..." );
  
+       timer_start = I_FloatTime();
        /* walk the list of surfaces */
        for ( i = 0; i < numBSPDrawSurfaces; i++ )
        {
                }
        }
  
 -      Sys_Printf( "%d.", (int) ( I_FloatTime() - timer_start ) );
++      Sys_FPrintf( SYS_VRB, "%d.", (int) ( I_FloatTime() - timer_start ) );
        /* finish */
 -      Sys_Printf( "done.\n" );
 +      Sys_FPrintf( SYS_VRB, "done.\n" );
  
        /* calc num stored */
        numStored = numBSPLightBytes / 3;
Simple merge
Simple merge