Git Product home page Git Product logo

Comments (7)

wyb10a10 avatar wyb10a10 commented on August 17, 2024

你用的是什么版本的creator?

from cocos_creator_framework.

BadworkerN avatar BadworkerN commented on August 17, 2024

from cocos_creator_framework.

wyb10a10 avatar wyb10a10 commented on August 17, 2024

从示意图上看,基本上是图片的内存占用增加了,这里应该是和GC有关,而不是真正的泄露,比如我们加载一个Texture,再释放它,重复执行这个操作,如果没有触发到js的垃圾回收,实际上这些东西应该是在内存中的。你可以直接用原生接口加载和释放,做一个测试

from cocos_creator_framework.

BadworkerN avatar BadworkerN commented on August 17, 2024

from cocos_creator_framework.

laoyuan1992 avatar laoyuan1992 commented on August 17, 2024

我的也是2.3.3,发布安卓,内存存在问题。资源贴图有释放错误的问题,

from cocos_creator_framework.

wyb10a10 avatar wyb10a10 commented on August 17, 2024

@laoyuan1992 是什么错误呢?

from cocos_creator_framework.

wyb10a10 avatar wyb10a10 commented on August 17, 2024

https://forum.cocos.org/t/cocos-creator-2-3-3/91293 在2.3.3版本找到这段话,应该是要额外destroy节点

如原先手动从场景中移除的节点,在不需要用到的时候也需要统一 `destroy()`
// 假设 testNode 是场景中的某个节点,若之前被手动移出场景了,如
testNode.parent = null;
// 或者
testNode.removeFromParent(true);
// 或者
parentNode.removeChild(testNode);
// 若往后 testNode 还会再次用到,则无需手动 destroy 该节点
// 否则应该手动调用
testNode.destroy();

from cocos_creator_framework.

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.