GithubHelp home page GithubHelp logo

Comments (5)

daleeidd avatar daleeidd commented on May 28, 2024 1

Thank you for narrowing that down. Fixed with above commit.

from crest.

daleeidd avatar daleeidd commented on May 28, 2024

Are you able to reproduce the issue by changing the same value through the inspector?

from crest.

powderek avatar powderek commented on May 28, 2024

Yes, the issue still occurs when changing values through the inspector.

I actually found the problem in the code. In FFTCompute.cs there is method GenerateDisplacements. This method is checking if new values are different from previous values and if they are it is creating new generator with new render textures, without removing the old one. Memory allocation is piling up pretty quick and is leading to imminent crash. I fixed it for my case by changing some conditions but it would be good to see a generic global solution.

from crest.

daleeidd avatar daleeidd commented on May 28, 2024

Strange. I wasn't able to reproduce and if it does affect the UI as well then I would definitely have hit this. That method will only create a new generator if resolution or loop period has changed otherwise it repurposes the existing generator.

Is it reproducible in the main scene?

from crest.

powderek avatar powderek commented on May 28, 2024

The problem doesn't exist in the main scene. I compared the setup and it turns out the problem happens only if Spectrum field on ShapeFFT component is left empty. If it is assigned then memory leaks doesn't happen.

from crest.

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.