does what it says...
*/
-void LightWorld( const char *BSPFilePath ){
+void LightWorld( const char *BSPFilePath, qboolean fastAllocate ){
vec3_t color;
float f;
int b, bt;
while ( bounce > 0 )
{
/* store off the bsp between bounces */
- StoreSurfaceLightmaps();
+ StoreSurfaceLightmaps( fastAllocate );
UnparseEntities();
Sys_Printf( "Writing %s\n", BSPFilePath );
WriteBSPFile( BSPFilePath );
const char *value;
int lightmapMergeSize = 0;
qboolean lightSamplesInsist = qfalse;
+ qboolean fastAllocate = qfalse;
/* note it */
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 ], "-fastgrid" ) ) {
fastgrid = qtrue;
Sys_Printf( "Fast grid lighting enabled\n" );
SetupTraceNodes();
/* light the world */
- LightWorld( BSPFilePath );
+ LightWorld( BSPFilePath, fastAllocate );
/* ydnar: store off lightmaps */
- StoreSurfaceLightmaps();
+ StoreSurfaceLightmaps( fastAllocate );
/* write out the bsp */
UnparseEntities();