Is your feature request related to a problem? Please describe (REQUIRED):
WebGL context can be lost when not enough GPU resources are available.
Describe the solution you'd like (REQUIRED):
I don't know how the game can restore it, or if it should. But at the very least, it should have a handler for this error. Because in the logs of the error reporting system I see indirect errors that there is no WebGL context and consequently players see a frozen game:
TypeError: Argument 1 ('shader') to WebGL2RenderingContext.shaderSource must be an instance of WebGLShader
TypeError: Failed to execute 'getAttribLocation' on 'WebGL2RenderingContext': parameter 1 is not of type 'WebGLProgram'
TypeError: WebGLRenderingContext.shaderSource: Argument 1 is not an object.
etc.
Describe alternatives you've considered (REQUIRED):
No alternatives.
Additional context (OPTIONAL):
https://www.khronos.org/webgl/wiki/HandlingContextLost
Is your feature request related to a problem? Please describe (REQUIRED):
WebGL context can be lost when not enough GPU resources are available.
Describe the solution you'd like (REQUIRED):
I don't know how the game can restore it, or if it should. But at the very least, it should have a handler for this error. Because in the logs of the error reporting system I see indirect errors that there is no WebGL context and consequently players see a frozen game:
TypeError: Argument 1 ('shader') to WebGL2RenderingContext.shaderSource must be an instance of WebGLShaderTypeError: Failed to execute 'getAttribLocation' on 'WebGL2RenderingContext': parameter 1 is not of type 'WebGLProgram'TypeError: WebGLRenderingContext.shaderSource: Argument 1 is not an object.etc.
Describe alternatives you've considered (REQUIRED):
No alternatives.
Additional context (OPTIONAL):
https://www.khronos.org/webgl/wiki/HandlingContextLost