WPF 中 75% 到 100% 的 CPU 使用率? [英] 75 to 100% of CPU Usage in WPF?
问题描述
每当应用程序加载和应用程序中的任何其他用户控件加载时,加载和呈现 CPU 使用率都会达到 80 - 100%.我应该如何解决这个问题?感谢致敬,艾尔沙德
Whenever application loads and any other usercontrol loads in the application, while loading and rendering the cpu usage touches 80 - 100%. How should i resolve this? Thanks and regards, Ershad
推荐答案
似乎您使用了大量 CPU 功率和内存.
Seems like you are using a lot of CPU power and memory.
尝试使用分析器(例如ants profiler) 来分析速度和内存使用情况.之后,通过重写算法优化瓶颈.
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.
当然,您应该在一台新的、功能强大的机器上进行测试,以确保它确实是您的应用程序问题,而不是 my-machine-is-old-and-badly 问题.
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.
这篇关于WPF 中 75% 到 100% 的 CPU 使用率?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!