-
|
Hello, I need your help in order to figure out this issue.
What i was trying so far This works fine if I' triggering webglcontextlost event manually via What would be the proper way to restore context ? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
|
Just FYI ... I think I solved it on my own .. I found issue in my code causing a leak, after removing it don't get Also default handling of |
Beta Was this translation helpful? Give feedback.
-
|
@Pr3s4ri0 I faced the same problem like your. How did you find the leaking point ? |
Beta Was this translation helpful? Give feedback.
-
|
@Pr3s4ri0 I faced the same problem like your. How did you find the leaking point ? |
Beta Was this translation helpful? Give feedback.
-
|
If you ever find that it works in production but you get context loss in development, note that React's "Strict Mode" purposefully calls |
Beta Was this translation helpful? Give feedback.
Just FYI ... I think I solved it on my own .. I found issue in my code causing a leak, after removing it don't get
WebGL: CONTEXT_LOST_WEBGL: loseContext: context lostany more.Also default handling of
webglcontextlostandwebglcontextrestoredevents is done in THREE.WebGLRenderer so nothing is needed in the app.