Differences in performance from local HTML5 and remote

When testing local HTML5 build from the editor (Build HTML5) it runs perfectly, when loading different things in game it’s instant.

When testing a release build on a remote server there is some lag. But I check the network and nothing is being downloaded, is it because of archiving compression?

When testing a debug build remotely it’s also impossibly laggy.

I’m unsure why you’re seeing different results. Compression could maybe be one reason.

What do you mean specifically? Are you referring to the graphics call validation on Chrome? (Defold development for the HTML5 platform)

The weird thing though is debug builds launched from the editor work just fine, but not when they are uploaded for a server for me.

When building HTML5 from the editor does it serve more raw, uncompressed assets or is it a fully bundled project?

When choosing “Build HTML5” we actually call bob.jar with --texture-compression false.
You find the bundle in your build folder:

build/default/__htmlLaunchDir/project_name

1 Like

Is defold_sound.swf still necessary / used?

I think it’s still used on older internet explorer versions. (it’s a fallback only)
We might be able to remove it soon (or at least make it optional)