HTML5 runs slow in browser

  • #1, by pixelgeistThursday, 31. January 2019, 07:18 5 years ago
    Hi there, I am building out a wireframe of very simple game consisting of:
    - 3 scenes (each 1280 X 720 with no animation)
    - 4 characters (blocked in with still images)
    - Voice over narration.
    - All images are webP
    - All audio is .ogg
    - Total size of built game directory is 16.8 MB

    I would like to put my WIP level online for testing and feedback.

    I am able to play the game either locally through my browser, or through itch.io

    But the playback is quite laggy and choppy.

    Is there anything I can do to optimize the game for HTML5?


    I have not tried pre-loading animations... Would that be helpful in this case?

    Newbie

    16 Posts


  • #2, by SimonSThursday, 31. January 2019, 11:41 5 years ago
    Hi, which browser are you using ? The best currently is chrome.

    Thread Captain

    1580 Posts

  • #3, by pixelgeistFriday, 01. February 2019, 03:00 5 years ago
    Hi, thanks for your reply!

    Locally, I could not get chrome to play the game...  (perpetual downloading screen)

    I was only able to get local playback to work with Microsoft Edge.

    When running from itch.io I am using Chrome.

    In either case playback choppiness seems about the same.

    Newbie

    16 Posts

  • #4, by NigecFriday, 01. February 2019, 09:32 5 years ago
    I found scenes loaded better the second time they are entered
    There was a discussion in the Visionaire Discord channel last year about this ...

    Key Killer

    627 Posts

  • #5, by SimonSFriday, 01. February 2019, 09:41 5 years ago
    Can I have a look at your game ? You can pm me.

    Thread Captain

    1580 Posts

  • #6, by NigecFriday, 01. February 2019, 11:29 5 years ago
    One of the problems is scenes that fade out aren't fading and take a painfully long time
    in this example if you move forward and click the briefcase you will see what I mean, that was set to fade, also the door in the first part is set to fade
    As you turn in the scenes it seems to improve but the door and briefcase never do
    The origial res was 800x600, I used the webp convertor

    Key Killer

    627 Posts

  • #7, by SimonSFriday, 01. February 2019, 20:41 5 years ago
    Okay, I'll fix it, the next version will use webassembly, that improves performance and the fades must be rewriten, next patch.

    Thread Captain

    1580 Posts

  • #8, by NigecSaturday, 02. February 2019, 10:12 5 years ago
    Awesome smile
    Thanks

    Key Killer

    627 Posts

  • #9, by pixelgeistSaturday, 09. March 2019, 20:55 5 years ago
    Just adding to this... it seems like .mkv cut scenes are not playing back in HTML5.  Is this expected?

    Newbie

    16 Posts

  • #10, by afrlmeSaturday, 09. March 2019, 21:42 5 years ago
    videos aren't currently supported for html5 builds.

    Imperator

    7278 Posts

  • #11, by pixelgeistSaturday, 09. March 2019, 22:02 5 years ago
    Gotcha... thanks for the clarification.

    Newbie

    16 Posts