James,I'm not sure what level of performance you expect (or require for your application) but your results (40-80 milliseconds) look very good - running your test code I found the human eye (mine at least) is barely able to keep up with display changes at those speeds. You might find you get slightly better performance with the ESRI Imagery basemap due to differences in the way different basemap sources are cached.As you add in additional layers of data you will find those display times begin to slow down - so the previous advice regarding spatial indexes, etc is still relevant. you seem to be working in 3D which uses a WGS84 geographic coordinate system - for best performance you should consider reprojecting any data you wish to display in Explorer (in 3D) into that coordinate system.RegardsMike
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using ESRI.ArcGISExplorer; using ESRI.ArcGISExplorer.Application; using ESRI.ArcGISExplorer.Mapping; using ESRI.ArcGISExplorer.Geometry; using ESRI.ArcGISExplorer.Data; using ESRI.ArcGISExplorer.Threading; namespace ZoomPerformanceTest { public class Button : ESRI.ArcGISExplorer.Application.Button { public override void OnClick() { Application.ActiveMapDisplay.AnimateMovement = false; for (int i = 0; i < 20; i++) { Viewpoint vp = new Viewpoint( new ESRI.ArcGISExplorer.Geometry.Point(i, 0, 85000), new ESRI.ArcGISExplorer.Geometry.Point(i, 0, 0)); DateTime d1 = DateTime.Now; Application.ActiveMapDisplay.ZoomTo(vp); System.Diagnostics.Debug.WriteLine(i + " time: " + (DateTime.Now - d1).TotalMilliseconds); } } } }
Hi Mike,Currently the only data that is loaded is the Bing Maps basemap.I'll try and do some more tests and post some results to see if I can figure out what the problem might be.Also, is (or will there be) a way to capture the mouse, other than using a Windows Mouse Hook?Thanks.
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.