[LayaAirIDE 2.0]LayaIDE 2.3.0beta创建模型过多导致内存溢出

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 ")
已邀请:

Aar0n

赞同来自:

创建模型过多导致内存溢出,可以把默认物理内存设置大一点,之前是16m 设置成32m 试试,改大了也不要过多创建模型

Aar0n

赞同来自:

代码创建了100万个,直接爆了, 测试3000个是可以的

要回复问题请先

商务合作
商务合作