What are the two numbers in top left of uap app using VS2015 and Windows 10?

╄→гoц情女王★ 提交于 2019-12-01 05:17:44
hayrob

I have now found that these numbers disappear if you set

this.DebugSettings.EnableFrameRateCounter = false

in OnLaunched. This is explained here

Not that this means anything to me.

Dung

It's the frame counter turned on by the following code snippet in your App.xaml.cs:

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

source: 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

These are debug informations, they will not show up if you build in release mode.

Left number is the FPS counter for your app, right number is the CPU usage for each frame in % (only for computations in the UI thread).

But the MSDN page you linked provided a full explanation.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!