WebGL - Restoring lost context
In this episode, I discuss losing context and how to properly restore it in WebGL.
Concepts:
Resources:
Concepts:
Lost Context
- When the GPU is using too many resources (perhaps another tab is using the GPU as well), and the browser frees up resources to regain control.
Resources:
- https://github.com/davidwparker/programmingtil-webgl/tree/master/0093-lost-context-part-2
- https://developer.mozilla.org/en-US/docs/Web/API/WEBGLlosecontext/loseContext
- https://developer.mozilla.org/en-US/docs/Web/API/WEBGLlosecontext/restoreContext
© programmingtil.com