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;
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;
namespace
{
+// Update the timestamp on a tile whenever it is in view.
+
class TileCullCallback : public osg::NodeCallback
{
public: