Windows 8 app blog talks about Metro performance issues

With Metro, Windows 8 will be giving app developers a whole new platform and a new UI to work with. However, these apps should always offer their users good performance as well. In the latest post on Microsoft's official Windows 8 app developer blog, the company's Dave Tepper gives some tips to app makers on how to avoid some performance problems in their Metro-based creations.

Tepper first gives some general advice to increase an app's performance, such as having the app load local images and files, rather than having them load over a network. He also says that if an image is supposed to be viewed well at multiple resolutions, it's best to have multiple versions of that image "unless you have a strong reason not to."

He also states that a Metro app should have content appropriate to the user's resolution, stating, "Loading content that is too small for a user’s resolution has reduced fidelity. Loading content that is too large for a user’s resolution puts an unnecessary strain on the resources of the system."

When creating Windows 8 Metro apps in JavaScript, Tepper says that having thumbnails in place, via using the Windows Runtime thumbnail APIs, will help make the app run faster. He posts some example code to show how this feature will work. Keeping communication between the DOM and the JavaScript engine down to a minimum will also help increase a JavaScript-based app's performance.

If an app maker is using XAML for his Metro creation, Tepper says that only loading the XAML code that is needed to get through the startup process will speed up performance, saying, "The easiest thing to do is load only pages needed to display the first visual. Carefully examine the XAML of your first page to make sure it contains everything it needs. If you reference a control or style that is defined somewhere else, the framework parses that file too."

Report a problem with article
Previous Story

Batman: Arkham City Lockdown iOS app updated

Next Story

Mass Effect 3: Extended Cut DLC announced; will "extend" the ending

9 Comments

Commenting is disabled on this article.

Javascript vs C language. JavaScript sucks in every possible way not to mention performance. I cannot believe that people bought it. This is coming from guy who knows 6 different programming languages with over 20 years into programming. Just incredible how much Metro is downgrade from everything we had before. What do you people even know....

techguy77 said,
Javascript vs C language. JavaScript sucks in every possible way not to mention performance. I cannot believe that people bought it. This is coming from guy who knows 6 different programming languages with over 20 years into programming. Just incredible how much Metro is downgrade from everything we had before. What do you people even know....

What are you talking about???
You can use VB.NET, C#, C/C++, Javascript,... to code your METRO Apps,

Stoffel said,

What are you talking about???
You can use VB.NET, C#, C/C++, Javascript,... to code your METRO Apps,


I think he just prefers plain old unmanaged, un metroed (Though of course you can still use C in the Desktop mode)

In a few years any 3 year old or a mentally challenged will be able to code apps.
Never mind it would be totally useless apps, but hey,everyone can do it and it look nice and shiny!
What more could you want?

He also says that if an image is supposed to be viewed well at multiple resolutions, it's best to have multiple versions of that image "unless you have a strong reason not to.

Isn't that what SVG's are for?

Maybe, but they do typically take more CPU power to render than Bitmaps, so usually in performance scenarios you try not use them unless they're really necessary (same applies to most vector formats).

I can't imagine that a pro wouldn't know that...?!

"as having the app load local images and files, rather than having them load over a network"

myxomatosis said,
I can't imagine that a pro wouldn't know that...?!

"as having the app load local images and files, rather than having them load over a network"

You would be surprise how many don't know that..

yardmanflex said,

You would be surprise how many don't know that..


Those people aren't "pros" and should be allowed to use computers for content creation…