Hi ,
I download and installed the new WPF control yesterday, the speed of this one is really lower than the previouse WPF control.
How can I solve the speed problem?
Regards,
Ben
Hi ,
I download and installed the new WPF control yesterday, the speed of this one is really lower than the previouse WPF control.
How can I solve the speed problem?
Regards,
Ben
Hi,
First of all, thank you for evaluating this new product; the difference from the previous WPF control is enhancing the performance in user experience and multi-thread. I’m not sure what do you mean by speed; but the new WPF desktop edition is formed with tiles instead of drawing a big image whenever you pan the map; so it saves a lot time during the navigation. So the new one continuously adds new tiles during panning and zooming but doesn’t redraw the whole map.
I think the best how do I sample to compare the performance is the under Samples/Dynamic Shapes/Refresh Points Randomly, please try panning the previous one and the new one while refreshing, you will see their difference.
I’m still wondering how do you test about the speed. Please try to set TileType = TileType.SingleTile on the LayerOverlay which is the same mode as the previous one.
Hope it makes sense.
Thanks,
Howard
Many thanks for your answer,
1-I just add a 1-2 MB file, and do the padding, zooming . but the speed is really less than the previous one.
2-there is post on forum that speaks about DrawingVisual vs GDI RenderMode, would you please descripe for me how I can switch between them, and what will be the result of this change?
Regards,
Ben
Hi Ben,
As I mentioned in the last reply, WPF desktop edition enhances the performance in user experience and multi-thread. I strongly recommend you to compare the how do I sample Samples/Dynamic Shapes/Refresh Points Randomly.
On the other hand, in multi-tile mode, it’s true that the total time for drawing all the tiles is slower than the previous one when the map redraws. That’s because this new product fills with tiles and then form to a big map, it’s slower than drawing one big image in total time. But when you panning, the previous one will leave some blank space, and it’ll be fill up after your mouse drop; at this time, all the screen redraws. Let’s see the WPF Desktop Edition, while panning, the tiles are cached so that we don’t need to redraw all the images; just fill tiles for the blank space. So it’s hard to say which is faster after some operation.
We also have the Single tile which works the same as the previous one, please have a try. If you still think it’s slow, please send us your shape file and a simple sample so that we can output the drawing speed and compare.
LayerOverlay has a property names RenderMode; you can switch between DrawingVisual and GdiPlus, I recommend using GdiPlus which is stable and draws asynchronously which won’t affect the panning effect.
Thanks,
Howard
Many trhanks for your answer.
Hi Ben,
You are welcome, just let us know if you have more queries.
Thanks,
Howard