Skip to content
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

Huge memory consumption (meet+WebGL2) #44

Open
jibon57 opened this issue May 8, 2022 · 1 comment
Open

Huge memory consumption (meet+WebGL2) #44

jibon57 opened this issue May 8, 2022 · 1 comment

Comments

@jibon57
Copy link

jibon57 commented May 8, 2022

First of all thanks for excellent solution. I was checking the demo site as well my implementation in Plug-N-Meet. If I choose meet + WebGL2 in Firefox it use huge memory. If I continue using like almost 20~25 minutes, it used up 12GB+ of RAM & browser got crashed. With meet + Canvas 2D + CPU doesn't have this problem. Is this normal or is there any memory leaks somewhere?

@HauHuu060988
Copy link

I guess the root cause is from https://github.com/Volcomix/virtual-background/blob/2adb3a95bcee4c42509c31ef1ecbb967ad9aa27f/src/pipelines/webgl2/webgl2Pipeline.ts#L164. I tried using ImageData instead of HTMLVideoElement, the problem did not occur but the quality is worse. I don't know if we have other solution to make sure this problem doesn't happen and keep good quality?

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

No branches or pull requests

2 participants