Random freezes on Windows Phone 8 Device

0 favourites
From the Asset Store
A futuristic device, can be used as radarscreen, optionscreen, infodisplay, research device, ...
  • Hi,

    I'm working on a Windows Phone 8 version of my Game R.U.Nuts and I would like to know if someone already had a random freeze issue.

    In fact, the game is well running but every one or two seconds the screen freezes during one second then keep on running.

    Video Example : dl.dropbox.com/u/107104215/Movie.wmv

    I encounter this on my HTC 8S but not on the Visual Studio 512M WVGA Emulator. Any clue?

    Thanks

  • Something very weird is that the freezing effect doesn't append if I continuously tap the screen ...

  • Hi beufreecasse,

    I've been testing a simple project on Window Phone too, and I'm getting a similar problem. Did you ever find a solution for R.U.Nuts?

    After reading this thread, I tried tapping the screen constantly (as you mentioned), and if I do this, the game stops freezing up, weird!

    Thanks, for any advice you might have.

    PS Nice game, love the graphics!

  • beufreecasse Can you try disabling all audio and see if that fixes it?

  • Hi thehen,

    Not sure about beufreecasse, but I'm currently using one of C2's built-in "starter" projects, just as a test for Windows Phone. I've used it straight out of the box, and haven't added any sound to the project!

    <img src="smileys/smiley1.gif" border="0" align="middle" />

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Blacksmith ah this is disconcerting. We've done a lot of work on the Windows Phone version of our game but don't have a HTC 8S to test on :X

  • beufreecasse,

    Even stranger, just re-read your posts, and I'm also running the HTC 8S. So perhaps its hardware related, although I thought it was a decent mid range device when I bought it!

    <img src="smileys/smiley5.gif" border="0" align="middle" />

  • thehen, yes it is quite worrying! I've been scratching my head for a while, trying to work out why I wasn't getting smooth performance on my device. Although still don't know for sure the device is the issue!

    Anyway, I'd be happy to test for you if you need me to, and if you have any concerns I'm happy to sign an NDA, just let me know!

    <img src="smileys/smiley1.gif" border="0" align="middle" />

  • Hi,

    I removed all the references to audio plugin to use windows phone audio plugin instead, I changed the whole project size too ( now all the project is sized to fit a 800x480 resolution)

    I also updated my windows phone version and I don't have the issue anymore, but on Htc 8s performances are very poor.

    I hope it will help.

  • beufreecasse, thanks very much for the advice! I've update the phone and the game is running smoothly now (Wooo Hooo!)

    thehen, hopefully this is good news for you as well! With any luck, once you're ready to release Mortar Melon, most people should have made the update :)

  • Thanks all *relief*

    beufreecasse I had very poor performance to begin with on my 820. If you upload the entire Windows Phone project to a remote location, then change the following in MainPage.xaml.cs:

    private string MainUri = "/index.html";

    to

    private string MainUri = "http://[your remote location]/index.html";

    and

    Browser.Navigate(new Uri(MainUri, UriKind.Relative));

    to

    Browser.Navigate(new Uri(MainUri, UriKind.Absolute));

    Test out this and see if the performance is better. If it is then there's a way to vastly improve performance.

  • thehen

    You were right, when I load my Game from a remote location it works better.

    What should I do to improve the performance without running from remote location?

    Thank you

  • beufreecasse good to know.

    Right, you're probably not going to like this, I know I didn't. You'll need to base64 encode your images as data uris into your c2runtime.js.

    So this:

    ["images/bg-sheet0.png", 369850, 0, 0, 800, 480, 1, 0.5, 0.5,

    [],[],0]

    Becomes this:

    ["data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIA...", 369850, 0, 0, 800, 480, 1, 0.5, 0.5,

    [],[],0]

    Here is a tool that is relatively quick at encoding.

    If anyone knows how to write a build script for Visual Studio to automate this I'd love them for ever. This is a real pain.

  • Ok thank you i will work on a tool to it automatically and replace it in the c2runtime.js.

    I will share it when it's done.

  • thehen, Ahhhh! base64 encoding images directly into you c2runtime.js. Sounds complicated, not sure I'd know where to put anything!

    beufreecasse, if you can come up with a tool to do this automatically, you'd be a C2 Superstar!!

    Good luck, I look forward to seeing the results.

    <img src="smileys/smiley4.gif" border="0" align="middle" />

Jump to:
Active Users
There are 2 visitors browsing this topic (0 users and 2 guests)