[LayaAir 2.0]2.1.1版加了3D物理引擎库后创建3个scene3D就报错

报错信息如下:
laya.physics3D.js:308 Uncaught abort("Cannot enlarge memory arrays. Either (1) compile with  -s TOTAL_MEMORY=X  with X higher than the current value 16777216, (2) compile with  -s ALLOW_MEMORY_GROWTH=1  which allows increasing the size at runtime but prevents some optimizations, (3) set Module.TOTAL_MEMORY to a higher value before the program runs, or (4) if you want malloc to return NULL (0) instead of this abort, compile with  -s ABORTING_MALLOC=0 "). Build with -s ASSERTIONS=1 for more info.
 
我的项目中用到了3D物理库,因为UI上也需要显示3D模型,所以创建了多个scene3D,结果创建到第3个就报错了,请问下要怎么解决好?
demo见附件!
已邀请:

Aar0n

赞同来自:

如果能升级引擎就升级, 这个默认物理内存不够用了,可以自己设置大一点试试。

Six.Sir

赞同来自:

自己修改了下 scene3D的构造函数,通过参数来判断是否需要创建物理对象解决了

要回复问题请先

商务合作
商务合作