WPF sluggish rendering/animation performance? -
I'm trying to animate about 1000 lines that have been added to all the canvas, and to expand it It is very slow that the animation is not possible at all. At first I thought that it might be due to all the calculations, but then I tried a very simple experiment. I generated approximately 1000 random lines and I tried to move them in new random coordinates using PointAnimations. I basically ran this program on every combination of OS / hardware, which I could find and I could not get more than 4 seconds of frames.
The source (and a bit more info) can be found in
Has anyone found any solutions to this? Is it really too much to ask WPF?
How do I handle such a situation here Do, just repaint the whole collection, but paint it in bitmap , and then block-move the view window.
If you directly jump directly to 1000 windows, it can take 10-100ms, and you will probably see flashing. But if you paint on the memory bitmap, then it will probably take about that time, but it will not flash clearly, because the block-transfer on screen is so fast.
Comments
Post a Comment