6

我已经安装了 Win 10 Preview 和 VS 2015。我创建了一个新的 uap 空白应用程序并运行它,我得到一个左上角有两个数字的窗口,例如 000 000 如果我向应用程序添加一个按钮(并将其从模糊的数字),然后单击按钮,数字在我看来随机变化,例如 020 001。

到底是怎么回事?

4

3 回答 3

7

我现在发现如果你设置这些数字会消失

this.DebugSettings.EnableFrameRateCounter = false

在 OnLaunched 中。这在这里解释

并不是说这对我来说意味着什么。

于 2015-03-31T09:52:56.817 回答
3

这是您的 App.xaml.cs 中的以下代码片段打开的帧计数器:

#if DEBUG
    if (System.Diagnostics.Debugger.IsAttached)
    {
        this.DebugSettings.EnableFrameRateCounter = true;
    }
#endif

来源:https ://social.msdn.microsoft.com/Forums/en-US/a33a634c-5c68-44b4-8fca-8eb5a263d145/misterious-numbers-being-displayed-in-upper-left-and-right-corners- of-the-screen?forum=winappswithcsharp

于 2016-08-14T05:04:58.450 回答
1

这些是调试信息,如果您在发布模式下构建,它们将不会显示。

左边的数字是您的应用程序的 FPS 计数器,右边的数字是每帧的 CPU 使用率,以 % 为单位(仅用于 UI 线程中的计算)。

但是您链接的 MSDN 页面提供了完整的解释。

于 2015-04-01T16:18:12.607 回答