PDA

View Full Version : Performance issure, layer changed


caller
03-04-2011, 10:52 AM
hi,

since some days my app becomes dramatically slower. profiling gives me that very mouch computation time is spend in
gov.nasa.worldwind.avlist.AVListImpl.fir ePropertyChange(String, Object, Object)

I am invoking it in my layers to notify worldwind it has to redraw, because of a layer change. removing this notifications and just moving the mouse over the globe also gives me the redraws, but the app is dramatically faster...

is this a WWJ bug, or is there a better way to inform wwd of a layer change?

thx

marco

caller
03-04-2011, 02:19 PM
I figured it out!
There was a api change LayerList, this causes that all my objects where listened multiple times!

@WWJ-team: could you maybe rework this class? I can't figure out a system, in which situations you add/remove the property change listeners, and in which one not. please compare
public boolean add(Layer layer)
and
public void add(int index, Layer layer)

thx

-marco
ps: I allready mentioned this bug here, but no one fixed it. is there a offical way to communicate / contribute this?

caller
03-04-2011, 02:20 PM
sorry, please compare instead:

public boolean addAll(Collection<? extends Layer> layers)
and
public boolean addAll(int i, Collection<? extends Layer> layers)