locked
where to put the initial code in d3d metro app RRS feed

  • Question

  • in my metro style d3d app, i create some models, and the procedure will take a little long time,

    so where can i put the initial code and it will not trouble the main process. now when i create the app package and run it, it shows the splash and then quit, but it can run correctly in debug mode.

     

    Friday, March 23, 2012 2:58 AM

Answers

  • You can do your initialization up front if you do it asynchronously. The requirement is that the app's UI needs to respond promptly so the user doesn't think the app is hung, so you want to move any lengthy initialization off of the UI thread and display your entry page quickly. This can be just a splashscreen or title page, but the more you allow the user to do earlier the better. You don't want your players to get frustrated at waiting and go play something else instead.

    --Rob

       
    • Marked as answer by Yi Feng Li Wednesday, April 4, 2012 3:20 AM
    Friday, March 23, 2012 10:46 PM
    Moderator