From 56f085b6f1b373b88944d98d95420916db43bda1 Mon Sep 17 00:00:00 2001 From: ehofman Date: Sun, 13 Jun 2004 18:47:55 +0000 Subject: [PATCH] Melchior FRANZ: Remove an unused test, counter_hack is initialized to 0 and the test never reaches the increment section but instead will always call loader.update(); --- src/Scenery/tilemgr.cxx | 12 +++--------- src/Scenery/tilemgr.hxx | 1 - 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/src/Scenery/tilemgr.cxx b/src/Scenery/tilemgr.cxx index 371b45eaf..bd90454b8 100644 --- a/src/Scenery/tilemgr.cxx +++ b/src/Scenery/tilemgr.cxx @@ -61,8 +61,7 @@ bool FGTileMgr::tile_filter = true; FGTileMgr::FGTileMgr(): state( Start ), current_tile( NULL ), - vis( 16000 ), - counter_hack(0) + vis( 16000 ) { } @@ -305,13 +304,8 @@ void FGTileMgr::update_queues() // cout << "current elevation (ssg) == " << scenery.get_cur_elev() << endl; - // activate loader thread one out of every 5 frames - if ( counter_hack == 0 ) { - // Notify the tile loader that it can load another tile - loader.update(); - } else { - counter_hack = (counter_hack + 1) % 5; - } + // Notify the tile loader that it can load another tile + loader.update(); if ( !attach_queue.empty() ) { #if defined(ENABLE_THREADS) && ENABLE_THREADS diff --git a/src/Scenery/tilemgr.hxx b/src/Scenery/tilemgr.hxx index e67a761bf..fb37a5c0f 100644 --- a/src/Scenery/tilemgr.hxx +++ b/src/Scenery/tilemgr.hxx @@ -108,7 +108,6 @@ private: * Queue tiles for loading. */ FGTileLoader loader; - int counter_hack; /** * Work queues. -- 2.39.5