Hi all
I am experiencing speed problems with my application...
First the system:-
2.4Ghz P4
1.5GB DDR RAM
128MB GForce graphics card
80GB drive
I have set a test OmPoly graphic rotating on the screen to simulate a radar scan using a timer to update the position etc.
The sequence below is called on every timer expiry. I.E 10ms
This works fine until I turn on the VmapLevel1 data layer I.E railroads.When the Vmap data layers are on, the sweeping of the graphic appears to jump a few positions and then catches up with itself. I assume the rendering is suffering.
Has anyone any ideas as to why this is happening? and maybe what I can do to improve this?
Any help is appreciated
regards
Mark.
public void redrawTestIcon()
{
// Create the new OmPoly latlong positions
anglePointA = azi - TestIconAngle/2; // gives points either side of the heading to give a cone shape field of view
anglePointB = azi + TestIconAngle/2;
newLatLonPointsA = CalculateX_Y_UtmPoint(5000,anglePointA); // returns an array of latlon points.
newLatLonPointsB = CalculateX_Y_UtmPoint(5000,anglePointB);
float[] llPoints = new float[8];
float[] llPointsman = new float[8];
llPoints[0] = vanLatPosition;
llPoints[1] = vanLonPosition;
llPoints[2] = newLatLonPointsA[0];
llPoints[3] = newLatLonPointsA[1];
llPoints[4] = newLatLonPointsB[0];
llPoints[5] = newLatLonPointsB[1];
llPoints[6] = vanLatPosition;
llPoints[7] = vanLonPosition;
// Redraw the OmPoly
TestIcon.setLocation(llPoints,OMGraphic.DECIMAL_DEGREES);
TestIcon.regenerate(this.getProjection());
this.repaint();
azi++;
}
********************************************************************
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 Jul 23 2004 - 04:42:31 EDT