1
0
Fork 0
flightgear/src/GUI
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
..
apt_dlg.cxx I just nailed an especially annoying tile cache scheduling bug. 2001-11-12 22:05:47 +00:00
apt_dlg.hxx Norman Vine has split up the GUI code into more managable/logical sections. 2001-01-08 20:55:16 +00:00
gui.cxx Updated mouse gui tweaks and Jim's nifty new external view controls. 2001-11-12 20:57:08 +00:00
gui.h - added guiErrorMessage 2001-07-24 23:50:44 +00:00
gui_local.cxx Fix various compiler warnings contributed by Norman Princeton. 2001-04-22 17:00:08 +00:00
gui_local.hxx Updated mouse gui tweaks and Jim's nifty new external view controls. 2001-11-12 20:57:08 +00:00
Makefile.am Updated mouse gui tweaks and Jim's nifty new external view controls. 2001-11-12 20:57:08 +00:00
mouse.cxx Updated mouse gui tweaks and Jim's nifty new external view controls. 2001-11-12 20:57:08 +00:00
net_dlg.cxx Norman Vine's mouse cursor tweaks fixes. 2001-11-12 19:37:23 +00:00
net_dlg.hxx MSVC fixes. 2001-03-21 23:10:15 +00:00
prop_picker.cxx Updated mouse gui tweaks and Jim's nifty new external view controls. 2001-11-12 20:57:08 +00:00
prop_picker.hxx Updated mouse gui tweaks and Jim's nifty new external view controls. 2001-11-12 20:57:08 +00:00
sgVec3Slider.cxx Updated mouse gui tweaks and Jim's nifty new external view controls. 2001-11-12 20:57:08 +00:00
sgVec3Slider.hxx Updated mouse gui tweaks and Jim's nifty new external view controls. 2001-11-12 20:57:08 +00:00
trackball.c Norman Vine has split up the GUI code into more managable/logical sections. 2001-01-08 20:55:16 +00:00
trackball.h Norman Vine has split up the GUI code into more managable/logical sections. 2001-01-08 20:55:16 +00:00