wp7如何降低CPU占用率?

发布于 2024-12-20 15:59:06 字数 327 浏览 3 评论 0原文

我正在检查我的项目中的CPU使用率,在空闲模式下它会显示40%-70%。

我想减少应用程序中的 CPU 使用率。

我在网上找到了一些代码,但没有降低CPU使用率。

code :

Application.Current.Host.Settings.EnableFrameRateCounter = true; 
System.GC.Collect();
System.GC.WaitForPendingFinalizers();

我怎样才能做到这一点?

如果有人知道答案请告诉我一些想法来做到这一点。

谢谢。

I am checking CPU usage in my project, it will display 40%-70% in idle mode.

I want reduce CPU usage in my application.

I found some code in internet, but not reduce CPU usage.

code :

Application.Current.Host.Settings.EnableFrameRateCounter = true; 
System.GC.Collect();
System.GC.WaitForPendingFinalizers();

How can i do that?

If anyone know the ans tell me some idea to do this.

thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文