Login / Registrieren
DE EN FR ES IT CZ
Zurück Nach oben

HTML5 runs slow in browser

  • #1, by pixelgeist 7 years ago Zitieren
    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?
  • #2, by SimonS 7 years ago Zitieren
    Hi, which browser are you using ? The best currently is chrome.
  • #3, by pixelgeist 7 years ago Zitieren
    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.
  • #4, by Nigec 7 years ago Zitieren
    I found scenes loaded better the second time they are entered
    There was a discussion in the Visionaire Discord channel last year about this ...

  • #5, by SimonS 7 years ago Zitieren
    Can I have a look at your game ? You can pm me.
  • #6, by Nigec 7 years ago Zitieren
    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

  • #7, by SimonS 7 years ago Zitieren
    Okay, I'll fix it, the next version will use webassembly, that improves performance and the fades must be rewriten, next patch.
  • #8, by Nigec 7 years ago Zitieren
    Awesome smile
    Thanks
  • #9, by pixelgeist 7 years ago Zitieren
    Just adding to this... it seems like .mkv cut scenes are not playing back in HTML5.  Is this expected?
  • #10, by afrlme 7 years ago Zitieren
    videos aren't currently supported for html5 builds.
  • #11, by pixelgeist 7 years ago Zitieren
    Gotcha... thanks for the clarification.