Cloud Training (Online)




How to remove the Frame rate counters in Windows Phone Emulator?

When trying to run the Windows Phone application on the Windows Phone Emulator from the Visual Studio 2012 , you will notice that there few text being displayed in the Emulator as shown in the below screenshot .

How to remove the Frame rate counters in Windows Phone Emulator?

The numbers or the text displayed are the Frame rate counters which lets you to monitor the performance of the App. The frame rate counters displays information like Composition (Render) Thread Frame Rate, User Interface Thread Frame Rate (FPS), Texture Memory Usage, Surface Counter, Intermediate Surface Counter and Screen Fill Rate Counter.

How to remove the Frame rate counters in Windows Phone Emulator?

You can disable the Frame rate counters by setting the Application.Current.Host.Settings.EnableFrameRateCounter property to false in the App.xaml.cs file as shown below. By default, the EnableFrameRateCounter is set to true.

if (Debugger.IsAttached)

{

   // Display the current frame rate counters.

   Application.Current.Host.Settings.EnableFrameRateCounter = false;

}

How to remove the Frame rate counters in Windows Phone Emulator?

Senthil Kumar B
Senthil Kumar is a former Microsoft MVP (Most Valuable Professional). He is a Co-Author of the book "Windows 10 Development Recipes using JavaScript and CSS" for Apress Publication. He is a technical presenter, blogger, mentor and a Geek.  Senthil is a regular speaker is various local user groups. He has presented at conferences like Great Indian Developer Summit (GIDS) & Microsoft DevCamps. You can reach out to him via his Twitter handle @isenthil.