Skip to content

Memory leak on state update #173

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
m4cn4ir opened this issue Jan 13, 2023 · 3 comments · Fixed by #179
Closed

Memory leak on state update #173

m4cn4ir opened this issue Jan 13, 2023 · 3 comments · Fixed by #179

Comments

@m4cn4ir
Copy link

m4cn4ir commented Jan 13, 2023

Hi,

on state update, 2 more textures will be added per rerender. I prepared a sandbox for this:
https://codesandbox.io/s/react-pp-outlines-forked-g8tugo?file=/src/App.js

Also, for reference: https://discourse.threejs.org/t/properly-disposing-of-three-effectcomposer/8415/8

@lgharibashvili
Copy link

I have a similar issue when using DepthOfField. But adds 16 textures on each update.

@noelcserepy
Copy link

I also have this issue with Bloom and DepthOfField.

@KisonHe
Copy link

KisonHe commented Mar 24, 2023

Same problem encountered. I need my website to talk to server, so the App will receive constant state updates. I noticed it seems that the Bloom in the EffectComposer is leaking GPU ram, but some other postprocessing like Outline is not leaking. Here is a code-sandbox https://codesandbox.io/s/gpu-ram-leak-example-5omr9d?file=/src/App.js

Any idea on how to fix this for now or I have to stop using Bloom for a moment? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants