[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见附件!
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见附件!
没有找到相关结果
已邀请:
要回复问题请先登录
2 个回复
Aar0n
赞同来自:
Six.Sir
赞同来自: