Properly drop empty tiles from tile cache.
Tiles which expired before being loaded could clog the tile cache.
This commit is contained in:
parent
8a382cd536
commit
5ef15023fc
1 changed files with 1 additions and 0 deletions
|
@ -100,6 +100,7 @@ long TileCache::get_drop_tile() {
|
|||
* Allow a 1 second timeout since an empty tiles may just be loaded...
|
||||
*/
|
||||
SG_LOG( SG_TERRAIN, SG_DEBUG, " dropping an unused and empty tile");
|
||||
min_index = index;
|
||||
break;
|
||||
}
|
||||
if (( e->get_time_expired() < min_time )||
|
||||
|
|
Loading…
Add table
Reference in a new issue