75 to 100% of CPU Usage in WPF?
Whenever application loads and any other usercontrol loads in the application, while loading and rendering the cpu usage touches 开发者_Python百科80 - 100%. How should i resolve this? Thanks and regards, Ershad
Seems like you are using a lot of CPU power and memory.
Try to find the bottleneck by using a profiler (such as ants profiler) to profile for speed and memory usage. After that, optimize the bottleneck by rewriting the algorithm.
Of course, you should test on a new, powerful machine to make sure that it is a really your application problem, but not a my-machine-is-old-and-lousy problem.
The problem in my case seems to be WPF event handling.
精彩评论