开发者

75 to 100% of CPU Usage in WPF?

开发者 https://www.devze.com 2022-12-18 05:57 出处:网络
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?

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消