[OpenMap Users] Refresh

From: Jay D. Askren <jda_at_quantumleap.us>
Date: Thu, 7 Jun 2007 10:35:29 -0400

We are trying to visualize the results of a simulation on top of Open Map. The map looks something like the following, but with only about 20 points or so:


Our problem is that the simulation updates fairly frequently (on the order of milliseconds) and is quite CPU intensive. No matter what we do, we seem to be getting some map flickering. I.E. the points on the map disappear and then come back later. Our layer extends Location Layer and our nave approach was to call doPrepare() every time the simulation updated the map. We also tried having a separate thread run in the background to sleep for a second or half second, call doPrepare(), and then do it again. Doing so did help a little, but it seems to be very dependent on the speed of the machine the application is running on. If we sleep too long, it appears the doPrepare() thread is getting starved because the map is not refreshing properly. Strangely enough the thing that has helped the most has been changing the radius of the points to be a little larger. Even with that, we still have some flickering happening. During the animation, the radius and the color of each circle are changing, but the circl
es aren't moving. Any ideas of how to fix this? Thanks.


[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 Thu Jun 07 2007 - 10:50:49 EDT

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