Tweaked some log messages.
This commit is contained in:
parent
0925492e4c
commit
87e3a7decb
2 changed files with 19 additions and 18 deletions
|
@ -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 {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue