[OpenMap Users] animated OMGraphic performance

From: Hope, James <james.hope_at_mbda.co.uk>
Date: Fri, 10 Dec 2004 11:33:19 +0000



I'm currently writing a layer that animates OMGraphics on the map and is
driven by a remote server sending update events every second.


Unfortunately when I have about 10 graphics moving around, updating every
second, the fast dual processor machine it is running on can hardly cope!


Obviously calling repaint() on the entire map takes way too long, so I am
calculating the invalidated area of the map for each moved graphic and
calling repaintChildren() for that area on the BufferedMapBean. Not only is
this not fast enough but it also brings with it a whole world of problems
with other layers not getting refreshed properly because the clipping area
has changed.


There must be a way of improving the performance beyond this. Does anyone
have any tips?


Thanks in advance





This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Fri Dec 10 2004 - 07:07:27 EST

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:06 EDT