From 72a42c224088b35542954448554a397fbdb42f68 Mon Sep 17 00:00:00 2001 From: timoore Date: Thu, 21 Feb 2008 22:50:05 +0000 Subject: [PATCH] Cleaned up comments to tile entry code --- src/Scenery/newcache.cxx | 2 -- src/Scenery/newcache.hxx | 2 -- src/Scenery/tileentry.cxx | 2 ++ 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Scenery/newcache.cxx b/src/Scenery/newcache.cxx index a7d1980e3..d17328a62 100644 --- a/src/Scenery/newcache.cxx +++ b/src/Scenery/newcache.cxx @@ -183,8 +183,6 @@ void FGNewCache::clear_cache() { bool FGNewCache::insert_tile( FGTileEntry *e ) { // register tile in the cache long tile_index = e->get_tile_bucket().gen_index(); - // not needed if timestamps are updated in cull-callback - // e->set_timestamp(globals->get_sim_time_sec()); tile_cache[tile_index] = e; return true; diff --git a/src/Scenery/newcache.hxx b/src/Scenery/newcache.hxx index 1e9297898..78a3eb6eb 100644 --- a/src/Scenery/newcache.hxx +++ b/src/Scenery/newcache.hxx @@ -104,8 +104,6 @@ public: inline FGTileEntry *get_tile( const long tile_index ) const { const_tile_map_iterator it = tile_cache.find( tile_index ); if ( it != tile_cache.end() ) { - // not needed if timestamps are updated in cull-callback - // it->second->set_timestamp(globals->get_sim_time_sec()); return it->second; } else { return NULL; diff --git a/src/Scenery/tileentry.cxx b/src/Scenery/tileentry.cxx index ab06bf62f..2eab669aa 100644 --- a/src/Scenery/tileentry.cxx +++ b/src/Scenery/tileentry.cxx @@ -96,6 +96,8 @@ public: namespace { +// Update the timestamp on a tile whenever it is in view. + class TileCullCallback : public osg::NodeCallback { public: -- 2.39.5