[Tips] [Windows Phone 7] 如何開啟和關閉畫面更新率(Frame Rate Counters)的顯示

  • 3096
  • 0

[Tips] [Windows Phone 7] 如何開啟和關閉畫面更新率(Frame Rate Counters)的顯示

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模式下,畫面更新率應該就會關閉了。

但我怎麼試都無效,還請有測試出來的朋友多多指教了。

 

B+ StudioCopyright © 2010 B+ Studio.