locked
Windows 8 html5 canvas game runs slower when compiled to Metro than running in browser.

    Question

  • I have a game written in Javascript and HTML5 canvas, it runs much slower at rate 30 fps when compiled to Metro compared to fps 60+ in IE10.
    Monday, June 25, 2012 6:29 AM

Answers

  • Some further hints from the documentation Rob provided:

    Ensure you have NO inline script in the HTML.  Make sure it is all in js files.

    Make sure your JS files (and libraries) all have the BOM so they can be compiled.


    Jeff Sanders (MSFT)

    Thursday, June 28, 2012 6:58 PM
    Moderator

All replies

  • Thank you for the reply, but your links doesn't explain why html5 canvas javascript runs faster in IE10 than compiled as metro app.
    Tuesday, June 26, 2012 3:44 AM
  • Are you sure that it isn't just slower because the VS debugger is attached?

    Wednesday, June 27, 2012 5:58 AM
  • It is impossible to guess why your app is running differently without knowing more information about what it is doing and where it is running more slowly. The links I included will help you figure that out.

    As Patrick suggests, also make sure that you are comparing like environments and don't have external interference.

    --Rob

    Thursday, June 28, 2012 2:04 AM
    Owner
  • Some further hints from the documentation Rob provided:

    Ensure you have NO inline script in the HTML.  Make sure it is all in js files.

    Make sure your JS files (and libraries) all have the BOM so they can be compiled.


    Jeff Sanders (MSFT)

    Thursday, June 28, 2012 6:58 PM
    Moderator