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

THREE.WebGLRenderer: Context Lost. #45

Open
Emmanuel-Jackson opened this issue Apr 23, 2023 · 6 comments
Open

THREE.WebGLRenderer: Context Lost. #45

Emmanuel-Jackson opened this issue Apr 23, 2023 · 6 comments

Comments

@Emmanuel-Jackson
Copy link

When entering the site, it is very slow. When you scroll down it crashes. Then in the console it gives me an error saying THREE.WebGLRenderer: Context Lost. Is there a way I can prevent this error and optimize the site to help with its speed. Help will be much appreciated.

Thank you kindly!

@Sohad-Almadhoon
Copy link

I faced that problem but I just copied the instructor's file then it worked for me!

@DonSmog
Copy link

DonSmog commented May 4, 2023

Any fix to this?

@hady-dev
Copy link

hady-dev commented May 5, 2023

@DonSmog and @Emmanuel-Jackson can you please share your code as in the file the error is coming from or github repo for your full code.

@DonSmog
Copy link

DonSmog commented May 5, 2023

I figured out what was wrong. I had too many balls. Reduced the number of balls and it worked.
Still having issue with the mobile optimization though

@zjian107-su
Copy link

#79
There is a limit of how many canvas you can have for the project before memory leaks, or too much to handle. Like @DonSmog said, it would help.

@arpit-garg-1995
Copy link

#41
Browser has a limit on how many contexts it can handle, look into the issue 41.

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

6 participants