Code Monkey home page Code Monkey logo

Comments (4)

DanielChappuis avatar DanielChappuis commented on June 22, 2024

Thanks for reporting this. I will try to investigate this. Do you have a small code example showing this leak (I mean when the mNbTimesAllocateMethodCalled increases after creating/destroying bodies) ?

from reactphysics3d.

RetroBytes32 avatar RetroBytes32 commented on June 22, 2024

This code example will reproduce the issue.

PhysicsCommon common;
PhysicsWorld* world = common.createPhysicsWorld();

MemoryManager& memMan = world->getMemoryManager();
HeapAllocator& allocator = memMan.getHeapAllocator();

while (true) {
    
    RigidBody* rigidBody = world->createRigidBody( Transform::identity() );
    
    world->destroyRigidBody( rigidBody );
    
    std::cout << allocator.mNbTimesAllocateMethodCalled << std::endl;
    
}

Im compiling to a dynamic library on windows 10 x64.

from reactphysics3d.

DanielChappuis avatar DanielChappuis commented on June 22, 2024

Hello. I am able to reproduce this issue on the 'master' branch but not on the 'develop' branch. Therefore, I think this issue is already fixed there. This will be available in the next release of the library.

from reactphysics3d.

RetroBytes32 avatar RetroBytes32 commented on June 22, 2024

Thank you for taking the time to look into this. I am glad to hear the issue was already resolved and i'm looking forward to the next release.

from reactphysics3d.

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.