fljmayer
03-03-2008, 11:08 PM
I have put WWJ 0.4.1 into an Eclipse view; this may be the source of my problem, but it doesn't look like that to me. So here is the problem:
I only add WMS layers to the canvas as BasicTiledImageLayers. This works just fine for only a few layers, but when I add some more (still less than 10) or maybe disable and then enable a bunch, the view seems go into an infinite repaint() loop. As far as I can tell, BasicTiledImageLayer.RequestTask.run() through a event eventually triggers a repaint of WorldWindowGLCanvas, which in turn triggers the running of more RequestTasks. The visual result is that the individual layers constantly pop in and of existence, usually one after the other; when a layer comes back it goes through all the pyramid layers. Sometimes it stops after a while, but at other times it goes on forever. Sometimes it is only a single layer that comes and goes, but mostly all of them.
I also noticed that my "Texture" and "Texture Tile" cache are getting full, even though I set them to 200,000,000 and 100,000,000 respectively. My impression was that my problems coincided with a full cache. Anyway, I thought it was odd that the actual heap usage was maybe 100MB when both caches where throwing out entries because they were full.
Am I doing something wrong? Can I fix this somehow?
I only add WMS layers to the canvas as BasicTiledImageLayers. This works just fine for only a few layers, but when I add some more (still less than 10) or maybe disable and then enable a bunch, the view seems go into an infinite repaint() loop. As far as I can tell, BasicTiledImageLayer.RequestTask.run() through a event eventually triggers a repaint of WorldWindowGLCanvas, which in turn triggers the running of more RequestTasks. The visual result is that the individual layers constantly pop in and of existence, usually one after the other; when a layer comes back it goes through all the pyramid layers. Sometimes it stops after a while, but at other times it goes on forever. Sometimes it is only a single layer that comes and goes, but mostly all of them.
I also noticed that my "Texture" and "Texture Tile" cache are getting full, even though I set them to 200,000,000 and 100,000,000 respectively. My impression was that my problems coincided with a full cache. Anyway, I thought it was odd that the actual heap usage was maybe 100MB when both caches where throwing out entries because they were full.
Am I doing something wrong? Can I fix this somehow?