代码之家  ›  专栏  ›  技术社区  ›  MIantosca

WP7 RTM Emulator正在右侧显示framecounter和dx信息-这是默认值吗?

  •  3
  • MIantosca  · 技术社区  · 14 年前

    我确实更改了任何设置/首选项-这是RTM仿真器的默认行为吗?

    谢谢

    1 回复  |  直到 14 年前
        1
  •  7
  •   John Gardner    14 年前

    模拟器没有。默认情况下,应用程序是。(如果附加了调试器)

    如果你往里面看应用程序xaml.cs在自动生成的构造函数中可以找到以下代码:

            // 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;
            }
    

    如果您想关闭enableframeratecounter,您可以将其注释掉,也可以取消对其他计数器的注释以获取更多内容。