1
0
Fork 0
flightgear/src
curt 36de63366b I just nailed an especially annoying tile cache scheduling bug.
What was happening was that we screwed up and scheduled tiles for
(lon,lon) rather than (lon,lat) ... note the typo.  This generated
bogus tile id's which the system happily accepted, put into the tile
cache system, and attempted to load.  The problem was that these bogus
tile id's were negative where as all valid tile id's should be >= 0.

These negative tile id's up the logic used to remove tiles from the
cache.  When identifying tiles for removal, we look for the furthest
tile away from us by starting out the furthest id at -1 and if we find
something further, we update the furthest tile id.  Then at the end we
check if the furthest tile id >= 0 to see if we found anything we
could remove.  However, the furthest tile id was these bogus tiles
with negative tile id's so the system always assumed there was nothing
appropriate for removal.  This made it impossible to ever remove a
tile from the cache meaning it quickly filled up and no more tiles
could be loaded.

I fixed the one instance of scheduling tiles for a bogus location, and
added a sanity check so if it ever happens again we'll bomb with an
appropriate error message.
2001-11-12 22:05:47 +00:00
..
Aircraft Move FGControls declaration to globals.hxx 2001-07-22 19:51:16 +00:00
Airports Add #include <math.h> for fabs() 2001-11-08 16:52:51 +00:00
ATC Initial revision of ATIS module contributed by Dave Luff. 2001-11-07 17:55:04 +00:00
Autopilot This set of changes touches a *lot* of files. The main goal here is to 2001-10-28 16:16:30 +00:00
Cockpit Changes to support Dave Luff's initial ATC/ATIS module. 2001-11-07 17:55:28 +00:00
Controls - removed references to FGSoundMgr 2001-11-06 22:32:14 +00:00
FDM Sync with latest JSBSim CVS 2001-11-12 16:06:29 +00:00
GUI I just nailed an especially annoying tile cache scheduling bug. 2001-11-12 22:05:47 +00:00
Include Updated by Geoff McLane. 2001-11-12 18:13:17 +00:00
Input Fix a segfault on exit. Introduces a small memory leak if the instrument 2001-08-16 16:06:55 +00:00
Main Sync with latest JSBSim CVS 2001-11-12 16:06:29 +00:00
Navaids Changes to support Dave Luff's initial ATC/ATIS module. 2001-11-07 17:55:28 +00:00
Network This set of changes touches a *lot* of files. The main goal here is to 2001-10-28 16:16:30 +00:00
NetworkOLK Macintosh OSX changes. 2001-10-23 22:25:53 +00:00
Objects MSVC tweak. 2001-07-30 22:54:20 +00:00
Scenery I just nailed an especially annoying tile cache scheduling bug. 2001-11-12 22:05:47 +00:00
Sound I just nailed an especially annoying tile cache scheduling bug. 2001-11-12 22:05:47 +00:00
Time update based on property system rather than cur_fdm_state because cur_fdm_state 2001-10-29 04:41:30 +00:00
Weather Removed 'x' from the xgl* calls. 2001-06-05 19:50:36 +00:00
WeatherCM CM: 2001-07-19 22:10:14 +00:00
Makefile.am Changes to support Dave Luff's initial ATC/ATIS module. 2001-11-07 17:55:28 +00:00