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();
This commit is contained in:
parent
22c0529280
commit
56f085b6f1
2 changed files with 3 additions and 10 deletions
|
@ -61,8 +61,7 @@ bool FGTileMgr::tile_filter = true;
|
||||||
FGTileMgr::FGTileMgr():
|
FGTileMgr::FGTileMgr():
|
||||||
state( Start ),
|
state( Start ),
|
||||||
current_tile( NULL ),
|
current_tile( NULL ),
|
||||||
vis( 16000 ),
|
vis( 16000 )
|
||||||
counter_hack(0)
|
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -305,13 +304,8 @@ void FGTileMgr::update_queues()
|
||||||
|
|
||||||
// cout << "current elevation (ssg) == " << scenery.get_cur_elev() << endl;
|
// cout << "current elevation (ssg) == " << scenery.get_cur_elev() << endl;
|
||||||
|
|
||||||
// activate loader thread one out of every 5 frames
|
// Notify the tile loader that it can load another tile
|
||||||
if ( counter_hack == 0 ) {
|
loader.update();
|
||||||
// Notify the tile loader that it can load another tile
|
|
||||||
loader.update();
|
|
||||||
} else {
|
|
||||||
counter_hack = (counter_hack + 1) % 5;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( !attach_queue.empty() ) {
|
if ( !attach_queue.empty() ) {
|
||||||
#if defined(ENABLE_THREADS) && ENABLE_THREADS
|
#if defined(ENABLE_THREADS) && ENABLE_THREADS
|
||||||
|
|
|
@ -108,7 +108,6 @@ private:
|
||||||
* Queue tiles for loading.
|
* Queue tiles for loading.
|
||||||
*/
|
*/
|
||||||
FGTileLoader loader;
|
FGTileLoader loader;
|
||||||
int counter_hack;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Work queues.
|
* Work queues.
|
||||||
|
|
Loading…
Add table
Reference in a new issue