1

Thias is a screenshot of the right hand side of the application in the emulator, these also appear when I deploy to the phone device. what are they, are they supposed to be there?

enter image description here

4

1 回答 1

2

这些值是诸如帧速率计数之类的统计信息,以及有关 cpu 和内存使用情况的信息。

您经常在调试期间保持它们打开,但在发布时将它们关闭。

这最好在 App 类的构造函数中完成,例如

/// <summary>
    /// Constructor for the Application object.
    /// </summary>
    public App()
    {
        // Global handler for uncaught exceptions. 
        UnhandledException += Application_UnhandledException;

        // Phone-specific initialization
        InitializePhoneApplication();

        // Standard Silverlight initialization
        InitializeComponent();

        // XNA initialization
        InitializeXnaApplication();

        DispatcherHelper.Initialize();

        // 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 handed off to GPU with a colored overlay.
            //Application.Current.Host.Settings.EnableCacheVisualization = true;

            // Disable the application idle detection by setting the UserIdleDetectionMode property of the
            // application's PhoneApplicationService object to Disabled.
            // Caution:- Use this under debug mode only. Applications that disable user idle detection will continue to run
            // and consume battery power when the user is not using the phone.
            PhoneApplicationService.Current.UserIdleDetectionMode = IdleDetectionMode.Disabled;
        }

        //set up the tile
        //StartSearchAgent();
        //ScheduledActionService.LaunchForTest("shottracker", TimeSpan.FromSeconds(1));
    }

因此,您将 EnableFrameRateCounter 设置为 false 等。

可以在此处找到有关值的详细信息

帧率计数器

于 2012-07-20T10:49:51.540 回答