Layabox 物理内存溢出

 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.

layabox 导入模型时,物理内存溢出,修改配置文件即可

在Main.js中添加 

window['Config3D']['_default']['_defaultPhysicsMemory'] = 1024;
 

猜你喜欢

转载自www.cnblogs.com/huojiaoqingchun0123/p/13364549.html