Enabling Frame Rate Counters for XAML Applications in Windows 8
Join the DZone community and get the full member experience.Join For Free
one of the things that we all look at before we ship software is the performance of our apps. last november, i posted a quick and easy way to do it in silverlight . today, i am going to walk you through doing it in windows 8 for your metro xaml applications.
after the build event was over, i was interested in learning how to do this for my windows 8 metro apps. i started watching videos from the build rss feed and noticed this one from tim heuer that did just that.
let’s get started
click/touch the “developer command prompt” to begin.
that will open a developer command prompt. at the command prompt, simply type in “regedit” without quotes as shown below.
add the registry key
now, depending on the version of windows 8 you have installed navigate and add the following key.
32-bit version of windows 8
in my case, i was using windows 8 64-bit. i had to create a new key called xaml and added a dword (32-bit) named enableframeratecounter with a value of 1
let’s test it
all you have to do now is to run any xaml / c# metro application.
ok, so what do these numbers mean? again, thanks to tim heuer for the nice slide.
you will notice that any application built using xaml / c# will display this framerate counter. even the ones that ships with windows 8. (for example: the memories application)
what about html / js apps?
it will not work with html / js metro applications as i tried it. i think that is why the registry key starts with “xaml”. =)
thanks for reading!
Published at DZone with permission of Michael Crump. See the original article here.
Opinions expressed by DZone contributors are their own.