Comments (4)
给你个土办法:
用记事本打开 laya.physics3D.js, 修改memorySize = 你想要的内存M数 * 1024 * 1024;
from layaair_discard.
@shipunyc laya.physics3D.js并没有memorySize可改,请问这是什么原因,我也遇到了。
from layaair_discard.
@Veinin 有的啊。你找个工具把这个文件修正一下格式,第一行就是memorySize.
原因就是内存不够用了,默认的内存只有16M。。。Laya里的3D scene默认是打开PhysicsSimulation的。3D模型里的Collider越多,越消耗内存。
我改到了100M。
from layaair_discard.
@shipunyc 已手动修改,改大内存后,没有再出现上面问题,感谢分享!
from layaair_discard.
Related Issues (20)
- IDE不支持webgl,调用canvas.getContext("webgl")返回空 HOT 1
- 2.0.0beta4模态对话框关闭后遮罩不消失 HOT 5
- 2.0.0beta4 Uncaught Can not find class laya.effect.GlowFilterSetter undefined HOT 3
- LayaIDE English HOT 7
- TiledMap is not a constructor HOT 1
- MovieClip is not a constructor HOT 1
- websocket 握手请求中可否支持自定义 header ? HOT 1
- Mismatching coords from touch event HOT 1
- 请求在 Graphics 中添加绘制虚线的功能 setLineDash
- UI Problem HOT 1
- 发布引擎版本都是不打 tag 的么?2.x 引擎的 tag 在哪里?
- 统计面板sprite每秒钟增加1000 HOT 2
- unity导出工具 弹力(restitution)参数异常
- Laya.timer.clearAll()清除了动画动作
- Laya.List.selectHandler执行时机有BUG
- 看新闻不是说改ts写了吗? HOT 1
- 没有找到3D铰链 HOT 1
- how do i import md5 encoding to layaair? HOT 1
- how do i make text have two colors in one text?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from layaair_discard.