From 87e3a7decb0ee4826878152999f65b98f36eabc7 Mon Sep 17 00:00:00 2001 From: curt Date: Wed, 1 Sep 1999 18:52:31 +0000 Subject: [PATCH] Tweaked some log messages. --- src/Scenery/tilecache.cxx | 12 ++++++------ src/Scenery/tileentry.cxx | 25 +++++++++++++------------ 2 files changed, 19 insertions(+), 18 deletions(-) diff --git a/src/Scenery/tilecache.cxx b/src/Scenery/tilecache.cxx index 2fb9ada68..1c82ca667 100644 --- a/src/Scenery/tilecache.cxx +++ b/src/Scenery/tilecache.cxx @@ -133,7 +133,7 @@ FGTileCache::exists( const FGBucket& p ) void FGTileCache::fill_in( int index, const FGBucket& p ) { - cout << "FILL IN CACHE ENTRY = " << index << endl; + // cout << "FILL IN CACHE ENTRY = " << index << endl; // Force some values in case the tile fails to load (i.e. fill // doesn't exist) @@ -163,13 +163,13 @@ FGTileCache::fill_in( int index, const FGBucket& p ) terrain->addKid( tile_cache[index].select_ptr ); if ( tile_cache[index].is_scheduled_for_cache() ) { - cout << "FOUND ONE SCHEDULED FOR CACHE" << endl; + // cout << "FOUND ONE SCHEDULED FOR CACHE" << endl; // load, but not needed now so disable tile_cache[index].mark_loaded(); tile_cache[index].ssg_disable(); tile_cache[index].select_ptr->select(0); } else { - cout << "FOUND ONE READY TO LOAD" << endl; + // cout << "FOUND ONE READY TO LOAD" << endl; tile_cache[index].mark_loaded(); tile_cache[index].select_ptr->select(1); } @@ -180,7 +180,7 @@ FGTileCache::fill_in( int index, const FGBucket& p ) void FGTileCache::entry_free( int cache_index ) { - cout << "FREEING CACHE ENTRY = " << cache_index << endl; + // cout << "FREEING CACHE ENTRY = " << cache_index << endl; tile_cache[cache_index].free_tile(); } @@ -247,8 +247,8 @@ FGTileCache::next_avail( void ) // index. if ( max_index >=0 ) { - FG_LOG( FG_TERRAIN, FG_INFO, " max_dist = " << max_dist ); - FG_LOG( FG_TERRAIN, FG_INFO, " index = " << max_index ); + FG_LOG( FG_TERRAIN, FG_DEBUG, " max_dist = " << max_dist ); + FG_LOG( FG_TERRAIN, FG_DEBUG, " index = " << max_index ); entry_free( max_index ); return( max_index ); } else { diff --git a/src/Scenery/tileentry.cxx b/src/Scenery/tileentry.cxx index 91b8ce5e5..c4af8ca54 100644 --- a/src/Scenery/tileentry.cxx +++ b/src/Scenery/tileentry.cxx @@ -64,33 +64,34 @@ FGTileEntry::~FGTileEntry ( void ) { void FGTileEntry::free_tile() { - FG_LOG( FG_TERRAIN, FG_INFO, + FG_LOG( FG_TERRAIN, FG_DEBUG, "FREEING TILE = (" << tile_bucket << ")" ); // mark tile unused mark_unused(); - // delete fragment list - FG_LOG( FG_TERRAIN, FG_INFO, + // delete fragment list and node list + FG_LOG( FG_TERRAIN, FG_DEBUG, " deleting " << fragment_list.size() << " fragments" ); - // for_each( begin(), end(), - // mem_fun_ref( &fgFRAGMENT::deleteDisplayList )); - fragment_list.erase( begin(), end() ); + fragment_list.clear(); + FG_LOG( FG_TERRAIN, FG_DEBUG, + " deleting " << nodes.size() << " nodes" ); + nodes.clear(); - // delete the ssg used structures - FG_LOG( FG_TERRAIN, FG_INFO, + // delete the ssg structures + FG_LOG( FG_TERRAIN, FG_DEBUG, " deleting vertex, normal, and texture coordinate arrays" ); - FG_LOG( FG_TERRAIN, FG_INFO, + FG_LOG( FG_TERRAIN, FG_DEBUG, " deleting vertex array" ); if ( vtlist != NULL ) { delete vtlist; } - FG_LOG( FG_TERRAIN, FG_INFO, + FG_LOG( FG_TERRAIN, FG_DEBUG, " deleting normal array" ); if ( vnlist != NULL ) { delete vnlist; } - FG_LOG( FG_TERRAIN, FG_INFO, + FG_LOG( FG_TERRAIN, FG_DEBUG, " deleting texture coordinate array" ); if ( tclist != NULL ) { delete tclist; @@ -110,7 +111,7 @@ FGTileEntry::free_tile() for ( int i = 0; i < kcount; ++i ) { ssgEntity *kid = parent->getKid( i ); if ( kid == select_ptr ) { - FG_LOG( FG_TERRAIN, FG_INFO, + FG_LOG( FG_TERRAIN, FG_DEBUG, "Found a kid to delete " << kid); found_kid = true; } -- 2.39.5