Tutorial of the Day 4: Tips on Debugging WP7 Application(Frame Rate Counters)

When you try to depoly the WP7 Application to your phone or emulator via Visual Studio, it is not difficult for you to find some numbers showing at the right top corner of the application. They are Frame Rate Counters.

The numbers keep changing as long as you input any to the application, e.g. gesture, typing etc.

However, do you really know what the numbers are showing? What are they measuring?

Here is an explanation from Microsoft.

You may ask, can we switch off these counters?

Of course we can, simply go to App.xaml.cs, you should be able to find the line

// Display the current frame rate counters.
Application.Current.Host.Settings.EnableFrameRateCounter = true;

Just change the true to false or comment it out, to disable this feature.

There is some explanation to each of the values.

Composition (Render) Thread Frame Rate (FPS) The rate at which the screen is updated.
User Interface Thread Frame Rate (FPS) The rate at which the UI thread is running.
Texture Memory Usage The video memory and system memory copies of textures being used in the application.
Surface Counter The number of explicit surfaces being passed to the GPU for processing.
Intermediate Surface Counter The number of implicit surfaces generated as a result of cached surfaces.
Screen Fill Rate Counter The number of pixels being painted per frame in terms of screens. A value of 1 represents 480 x 800 pixels.

Hope it helps you in debugging your WP7 Application.

Have fun 🙂

Advertisements

One thought on “Tutorial of the Day 4: Tips on Debugging WP7 Application(Frame Rate Counters)

  1. Hello,
    Just two words to say that you’re blog really help me !
    He is fun and simple and the content is very good.
    Thank’s !
    Please continue you’re great job.

    P.S.: Sorry for my english.. i’m a poor french ! 🙂

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s