commit 7dfe572306ff26e99da93f937dede61e35ead628 parent 704b706cf41dc1d38b577da136350a0d4a2098a1 Author: Michael Savage <mikejsavage@gmail.com> Date: Sun Dec 25 14:24:14 +0200 Remove some spammy printfs Diffstat:
gpubtt.cc | | | 1 | - |
hm.cc | | | 11 | ----------- |
terrain_manager.cc | | | 2 | -- |
diff --git a/gpubtt.cc b/gpubtt.cc @@ -44,7 +44,6 @@ void gpubtt_init( const u32 num_leaves = btt_count_leaves( btts.left_root ) + btt_count_leaves( btts.right_root ); - printf( "%u to %u verts\n", ohm->hm.width * ohm->hm.height * 2, num_leaves ); v3 * verts = memarena_push_many( arena, v3, num_leaves * 3 ); u32 num_vertices = 0; diff --git a/hm.cc b/hm.cc @@ -78,11 +78,6 @@ static v3 angles_to_vector_xy( v3 angles ) { return v3( sin( angles.y ), cos( angles.y ), 0 ); } -static WORK_QUEUE_CALLBACK( testwq ) { - u32 i = *( u32 * ) data; - printf( "work %u called with arena %p\n", i, arena->memory ); -} - static UB ub_sphere; static int sock; @@ -99,12 +94,6 @@ static bool set_nonblocking( int fd ) { extern "C" GAME_INIT( game_init ) { workqueue_init( &game->background_tasks, &mem->persistent_arena, 2 ); - u32 nums[ 10 ]; - for( u32 i = 0; i < 10; i++ ) { - nums[ i ] = i; - workqueue_enqueue( &game->background_tasks, testwq, &nums[ i ] ); - } - workqueue_exhaust( &game->background_tasks ); game->pos = v3( 1500, 1500, 250 ); game->angles = radians( v3( -90, 45, 0 ) ); diff --git a/terrain_manager.cc b/terrain_manager.cc @@ -224,7 +224,6 @@ static void terrain_unload_tile( TerrainManager * tm, s32 tx, s32 ty ) { return; } - printf( "destroyed %d %d\n", tx, ty ); heightmap_destroy( &tm->decompressed_tiles[ tx ][ ty ].heightmap ); free( tm->decompressed_tiles[ tx ][ ty ].normalmap ); free( tm->decompressed_tiles[ tx ][ ty ].quadtree.nodes_memory ); @@ -247,7 +246,6 @@ void terrain_init( assert( dims != NULL ); fscanf( dims, "%d %d", &tm->width, &tm->height ); fclose( dims ); - printf( "%d %d\n", tm->width, tm->height ); for( u32 ty = 0; ty < tm->height / TILE_SIZE; ty++ ) { for( u32 tx = 0; tx < tm->width / TILE_SIZE; tx++ ) {