GithubHelp home page GithubHelp logo

2.0版本加载报错 about layaair_discard HOT 4 OPEN

layabox avatar layabox commented on July 29, 2024
2.0版本加载报错

from layaair_discard.

Comments (4)

shipunyc avatar shipunyc commented on July 29, 2024

给你个土办法:

用记事本打开 laya.physics3D.js, 修改memorySize = 你想要的内存M数 * 1024 * 1024;

from layaair_discard.

Veinin avatar Veinin commented on July 29, 2024

@shipunyc laya.physics3D.js并没有memorySize可改,请问这是什么原因,我也遇到了。

from layaair_discard.

shipunyc avatar shipunyc commented on July 29, 2024

@Veinin 有的啊。你找个工具把这个文件修正一下格式,第一行就是memorySize.

原因就是内存不够用了,默认的内存只有16M。。。Laya里的3D scene默认是打开PhysicsSimulation的。3D模型里的Collider越多,越消耗内存。

我改到了100M。

from layaair_discard.

Veinin avatar Veinin commented on July 29, 2024

@shipunyc 已手动修改,改大内存后,没有再出现上面问题,感谢分享!

from layaair_discard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.