Guys, hello. Can you tell me what might be the issue? I’m creating a WebGL build with an empty scene (just a rotating 3D cube) and running it on an Android phone in Chrome. Everything works, but if the Desktop site option is enabled in the browser and the phone is in portrait mode (not fullscreen), the performance is just terrible (only 12 fps on an empty scene). However, if I rotate the screen to landscape orientation, disable the Desktop site option, or enable fullscreen mode, all the lags disappear (fps exceeds 100). Does anyone know what this is about? I’ve checked several Unity games from third-party developers. Is this a common problem with WebGL games on Unity?
When you say Android I assume you mean mobile, which technically isn’t supported. Here’s the official docs:
“Unity WebGL doesn’t support mobile devices. It might work on high-end devices, but current devices are often not powerful and don’t have enough memory to support Unity WebGL content.”
From:
There’s links on that page to some items you can adjust.