[LayaAir 2.0]多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.
 
代码:
this.m_scene = Laya.loader.getRes(this.getScenePath());
new Laya.Scene3D()
new Laya.Scene3D()
 
第三个new 就报错
内存已经设置到512M
window['Config3D'] && (window['Config3D']['_default']['_defaultPhysicsMemory'] = 512);
1564485548(1).jpg
已邀请:

Aar0n

赞同来自:

这个要传一下 复现demo 查一下

要回复问题请先

商务合作
商务合作