[Tips] [Windows Phone 7] 如何開啟和關閉畫面更新率(Frame Rate Counters)的顯示
2010-09-18 23:00
316 查看
Windows Phone 7 RTM版的工具預設會將畫面更新率顯示開啟,但我們依然可以到App.xaml把它關起來。
Application.Current.Host.Settings.EnableFrameRateCounter =false;
if (System.Diagnostics.Debugger.IsAttached)
{
// Display the current frame rate counters.
Application.Current.Host.Settings.EnableFrameRateCounter =true;
// Show the areas of the app that are being redrawn in each frame.
//Application.Current.Host.Settings.EnableRedrawRegions = true;
// Enable non-production analysis visualization mode,
// which shows areas of a page that are being GPU accelerated with a colored overlay.
//Application.Current.Host.Settings.EnableCacheVisualization = true;
}
照理說在非Debug模式下,畫面更新率應該就會關閉了。
但我怎麼試都無效,還請有測試出來的朋友多多指教了。
Copyright © 2010 B+ Studio.
Application.Current.Host.Settings.EnableFrameRateCounter =false;
if (System.Diagnostics.Debugger.IsAttached)
{
// Display the current frame rate counters.
Application.Current.Host.Settings.EnableFrameRateCounter =true;
// Show the areas of the app that are being redrawn in each frame.
//Application.Current.Host.Settings.EnableRedrawRegions = true;
// Enable non-production analysis visualization mode,
// which shows areas of a page that are being GPU accelerated with a colored overlay.
//Application.Current.Host.Settings.EnableCacheVisualization = true;
}
照理說在非Debug模式下,畫面更新率應該就會關閉了。
但我怎麼試都無效,還請有測試出來的朋友多多指教了。
Copyright © 2010 B+ Studio.
相关文章推荐
- [Tips] [Windows Phone 7 (Beta)] 如何設定應用程式起始頁(RootFrame)
- 如何让精灵在不同的帧率下运动速度不变--Frame Rate Independent Movement
- [Tips] [Windows Phone 7 (Beat)] 如何讓硬體的返回鍵不作用
- [转载]如何发送和接收 Windows Phone 的 Toast 通知
- 开发者如何选择系统平台?Android、IOS还是Windows Phone?
- 如何从 Windows Phone 的加速度计传感器获取数据
- 如何将Dataframe数据转化为ndarry数据
- Windows Phone7开发,一步一步完成一个即时聊天软件之咏叹调:在Windows phone 7 中如何压缩WAV音频文件
- [RK3288][Android6.0] Audio的frame/period_size/bps_rate
- windows phone 8中如何在App.xaml中使用ResourceDictionary
- 如何在 Windows Phone 的代码中创建应用程序栏
- UITableView的frame改变做动画时,如何禁用UITableViewCell内置的动画效果
- web developer tips (61):如何创建Asp.net Dynamic Data网站
- Windows Phone 7 如何禁用WebBrowser 控件缩放和左右移动
- 【CRM Tips】如何在CRM 4.0中更换数据库
- 如何開啟Visual Studio 2010 Express for Windows Phone Beta
- Windows Phone 7 Tips “.NET研究”(4)
- 如何为Windows Phone 7认证考试70-599做准备
- [转]JS如何操作 frameset frame 对象
- 在MFC中,如何获取CWinApp,CMainFrame,CChildFrame,CDocument,CView