Trying to get a handle on WebGL context lost

https://www.babylonjs-playground.com/#H2IPH3

simple example where I simulate context lost. Camera stops working and then when you hit play again you get Uniform buffer error.

In the docs it reports that Babylon handles this by default, is there anything else I need to do?

I’m getting a some uniform buffer and unable to create texture errors from clients (all platforms I think) which makes me think it’s caused by the context being lost. I will do some more research, but in the meantime I would like to know what the default is and should be for this playground.

Thanks,
Mise

You should call restoreContext to simulate a restore:
https://playground.babylonjs.com/#H2IPH3#1

However, it still does not work. You should create an issue in the github repo about this.

PR:

1 Like