HTML5 runs slow in browser

  • #1, by pixelgeistThursday, 31. January, 07:18 A month 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, 11:41 A month ago
    Hi, which browser are you using ? The best currently is chrome.

    Thread Captain

    1187 Posts

  • #3, by pixelgeistFriday, 01. February, 03:00 A month 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, 09:32 A month 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 ...

    Great Poster

    469 Posts

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

    Thread Captain

    1187 Posts

  • #6, by NigecFriday, 01. February, 11:29 A month 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

    Great Poster

    469 Posts

  • #7, by SimonSFriday, 01. February, 20:41 A month 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

    1187 Posts

  • #8, by NigecSaturday, 02. February, 10:12 A month ago
    Awesome smile
    Thanks

    Great Poster

    469 Posts

  • #9, by pixelgeistSaturday, 09. March, 20:55 2 weeks 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, 21:42 2 weeks ago
    videos aren't currently supported for html5 builds.

    Imperator

    6486 Posts

  • #11, by pixelgeistSaturday, 09. March, 22:02 2 weeks ago
    Gotcha... thanks for the clarification.

    Newbie

    16 Posts

Write post