]> git.mxchange.org Git - flightgear.git/commitdiff
Melchior FRANZ:
authorehofman <ehofman>
Sun, 13 Jun 2004 18:47:55 +0000 (18:47 +0000)
committerehofman <ehofman>
Sun, 13 Jun 2004 18:47:55 +0000 (18:47 +0000)
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
src/Scenery/tilemgr.hxx

index 371b45eafac559bb72fc1859b86c6c3cc9f83af1..bd90454b849fe655428857bc7ddc91d019d8db2d 100644 (file)
@@ -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
index e67a761bfabc128503a87f04f3afc5ba77b16375..fb37a5c0fee38efb8350a13a171babffcd8d18d4 100644 (file)
@@ -108,7 +108,6 @@ private:
      * Queue tiles for loading.
      */
     FGTileLoader loader;
-    int counter_hack;
 
     /**
      * Work queues.