Defold 1.10.2 BETA

On a related note, I had also forgot to add my PR #10575 to this release, regarding Emscripten update.

In Emscripten 4, the minimum versions has been updated.
I don’t have an iPhone 7 to test on, but looking at the version numbers, it should support Safari 10, which I believe is the one on iPhone 7.

From the notes above:

No Threads:

  • MIN_FIREFOX_VERSION=40
  • MIN_SAFARI_VERSION=101000
  • MIN_CHROME_VERSION=45

With pthreads:

  • MIN_FIREFOX_VERSION=79
  • MIN_SAFARI_VERSION=150000
  • MIN_CHROME_VERSION=75
2 Likes

According to internet search results, the error at the top is the same Wasm SIMD requirement. The minimum browser requirements are fine (and it seems that this applies more to the JS wrapper, i.e., it just removes polyfills).

That’s a shame! Because I have very nice previews of convex shapes now :grinning_face_with_smiling_eyes:

7 Likes

If you are looking under the API’s hood right now, how distant in the codebase are concave triangle meshes? :eyes:

I am 100% on board with lending my physics design prowess to showcasing advances in Defold’s 3D physics. My credential :automobile:.

I’ve now updated the Beta build with a fix for this case.

1 Like

I now have a PR in review. I hope to merge it into the release today.

1 Like

The fix has been merged into beta now, so please verify if it works for you!

1 Like

Defold Engine 1.10.2 (d25cf0c), right?

  1. OpenGL assertion - now the engine runs well on my PC. Many thanks! :hand_with_index_finger_and_thumb_crossed:
  2. But the engine still requires Wasm SIMD, the default build without dependencies and appmanifest.

I found a simple way to check this locally—install an older version of Firefox and disable automatic updates. Specifically, we need version 88. You can download it here: Directory Listing: /pub/firefox/releases/88.0/

1 Like

This should be fixed in the latest beta build.

3 Likes

Plus, there is wasm-tools

$ wasm-tools validate file.wasm --features=-simd

error: func 659 failed to validate

Caused by:
    0: SIMD support is not enabled (at offset 0xe973)

Also, Emscripten includes the wasm-opt tool - it can be used for that:

$ wasm-opt -n --metrics file.wasm

total
 [exports]      : 19
 [funcs]        : 4369
 [globals]      : 2
 [imports]      : 512
 [memories]     : 0
 [memory-data]  : 797682
 [table-data]   : 2868
 [tables]       : 1
 [tags]         : 0
 [total]        : 1035336
 [vars]         : 25484
 Binary         : 151656
 Block          : 38303
 Break          : 36239
 Call           : 33320
 CallIndirect   : 2474
 Const          : 163036
 Drop           : 3753
 GlobalGet      : 2391
 GlobalSet      : 4661
 If             : 16951   
 Load           : 92519
 LocalGet       : 295476
 LocalSet       : 98934
 Loop           : 5064
 MemorySize     : 3
 RefFunc        : 2868
 Return         : 1941
 SIMDExtract    : 70
 SIMDLoad       : 24
 SIMDLoadStoreLane: 8
 SIMDReplace    : 31
 SIMDShift      : 5
 SIMDShuffle    : 33
 SIMDTernary    : 6
 Select         : 5034
 Store          : 61243
 Switch         : 827
 Unary          : 15292
 Unreachable    : 3174
warning: no output file specified, not emitting output
2 Likes

The convex hull fix is now included in the latest build. A point cloud will be rendered in 3D physics mode.

1 Like

Thanks!
Yeah, that was the version.
It’s getting really strange then… :thinking:

Thanks for a good way to repro it, I’ll try that!

I have just downloaded defoldsdk.zip from Release v1.10.2 - beta · defold/defold · GitHub, and it appears that simd is still present in the libraries libbox2d_defold and libdmglfw despite your PR yesterday :person_shrugging:

$ find . -path "*wasm*" -name "*.a" -exec grep -l "simd" {} \;
./ext/lib/wasm-web/libbox2d.a
./ext/lib/wasm-web/libbox2d_defold.a
./ext/lib/wasm-web/libdmglfw.a
./ext/lib/wasm-web/libopus.a
./ext/lib/wasm_pthread-web/libbox2d.a
./ext/lib/wasm_pthread-web/libbox2d_defold.a
./ext/lib/wasm_pthread-web/libBulletCollision.a
./ext/lib/wasm_pthread-web/libBulletDynamics.a
./ext/lib/wasm_pthread-web/libdmglfw.a
./ext/lib/wasm_pthread-web/libLinearMath.a
./ext/lib/wasm_pthread-web/libopus.a
./lib/wasm-web/libsound.a
./lib/wasm_pthread-web/libsound.a
1 Like

Yeah, I must have been extra tired yesterday. I actually forgot to push to beta :confused:
So, now the packages are pushed, and will be available in ~1hr.

2 Likes

The built-in hash function is underlined in the editor for being undefined. Doesn’t happen in 1.10.0 which I normally use.
(editor 478a23599f4e0c9b6333ca0722f3eda5143ba86a, Mac, Apple Silicon).

Many thanks! Now the build is running fine on iPhone 7 and other test devices/browsers without SIMD.

2 Likes

:neutral_face:

Well, it’s not much we can do right now, as it’s an actual point cloud that’s being passed to Bullet3D.
We’d like to solve it by adding proper support for collision shapes from models/meshes.

3 Likes

(post deleted by author)

That’s very strange advice. Why would I need that? Bullet Physics has debug draw.