0beqz / realism-effects

SSGI, Motion Blur, TRAA - Effects to enhance your three.js scene's realism
https://realism-effects-obeqz.vercel.app/
MIT License
1.4k stars 61 forks source link

realism-effects: Memory leak problem #38

Open aile1997 opened 9 months ago

aile1997 commented 9 months ago

I tested both locally and online, with your example code, as well as my own working code, and experienced a memory leak: the same model, loaded multiple times, and each load cleared the memory of the previous model, but the memory continued to rise. When I use normal rendering, this problem does not occur. The memory comparison diagram is as follows: The leak points to Realistic-Effects, and I think it may be that the Realistic-Effects rendered real particle geometry memory is not fully cleared

1699954832128 ![Uploading 1699954754504.jpg…]()

aile1997 commented 9 months ago

image

bhouston commented 7 months ago

@0beqz I can help fund this project. Are you around @0beqz ? Let's chat.

aile1997 commented 7 months ago

@0beqz我可以帮助资助这个项目。你在附近吗@0beqz?我们聊聊吧。

This is the author on Twitter: 0beqz

0beqz commented 5 months ago

It's probably an issue with the custom material copies created for each material for the g-buffer pass. I'll look into it! Thanks for the report.