WP7 RTM Emulator is displaying the framecounter and dx info on the rightside - is this the default?

后端 未结 1 1001
一个人的身影
一个人的身影 2020-12-21 09:00

Any application I create in the RTM version of the Windows Phone 7 tools displays the framecounter,memory and gpu diagnostic info along the right side of the emulator screen

相关标签:
1条回答
  • 2020-12-21 09:46

    The emulator no. The apps by default, yes. (if the debugger is attached)

    If you look in App.xaml.cs you'll find this code in the autogenerated constructor:

            // Show graphics profiling information while debugging.
            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;
            }
    

    you can comment out the enableframeratecounter if you want it off, or you can uncomment those others to get more stuff.

    0 讨论(0)
提交回复
热议问题