So I'm developing a game that is about 20MB aprox. The game runs smoothly on PC browsers.
However, the game keeps crashing on a lot of mobile devices due to WebGL contest loss.
This happens in the middle of a loading screen (in which I have to load 14MB of assets).
This is the console output:
WebGL: CONTEXT_LOST_WEBGL: loseContext: context lost
When that happens, the game canvas becomes completely black, but audio is still playing the background music, so the game hasn't freezed.
Any ideas on this?
I tried to disable webgl but even though it works, the framerate drops considerably.
Thanks for your help, man!