|03-28-2008, 09:25 PM||#1|
Join Date: Oct 2007
RenderableLayer - use a Set instead of ArrayList?
Shouldn't RenderableLayer use a Set<Renderable> to hold all its renderables, instead of an ArrayList?
The benefit would be that adding the same Renderable many times wouldn't cause multiple instances to be kept in memory.
With the ArrayList, we have to keep track of which Renderable have been added to the layer, to prevent multiple instances.
In my case, I have shapes that are added or removed in response to certain events. When an "ADD" event arrives, I have to check if the shape is already there.
|Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)|
|Thread||Thread Starter||Forum||Replies||Last Post|
|ConcurrentModificationException in RenderableLayer||jjones||Development Help||1||02-21-2008 12:45 PM|
|Slight bug in RenderableLayer||nludkin||Development Help||3||01-25-2008 04:47 PM|
|Refactor RenderableLayer?||zerobarrier||Development Help||3||01-16-2008 07:09 AM|
|TerrainProfileLayer set Lat/Long end points||shawngano||Development Help||12||11-14-2007 09:08 PM|
|Under layer Properties "RefreshTimer" How can you set this in XML?||AlexG||Add-ons & Scripts||6||04-27-2007 10:55 PM|