project_3D_developer_portfolio icon indicating copy to clipboard operation
project_3D_developer_portfolio copied to clipboard

THREE.WebGLRenderer: Context Lost.

Open Emmanuel-Jackson opened this issue 2 years ago • 6 comments

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!

Emmanuel-Jackson avatar Apr 23 '23 14:04 Emmanuel-Jackson

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

Sohad-Almadhoon avatar Apr 23 '23 16:04 Sohad-Almadhoon

Any fix to this?

DonSmog avatar May 04 '23 15:05 DonSmog

@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.

hady-dev avatar May 05 '23 14:05 hady-dev

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

DonSmog avatar May 05 '23 17:05 DonSmog

#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.

zjian107-su avatar Jul 28 '23 15:07 zjian107-su

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

arpit-garg-1995 avatar Aug 17 '23 06:08 arpit-garg-1995