So when i export with PC RP to WebGL it just freezes in a scene with basically only a quad, directional light and a switch scene Update() timer, sound goes but Update() not,
the Mobile RP where i also tuned down other stuff myself works good as is the default new.
Maybe the problem is that i over tuned lighting settings in PC RP one.
(Cause default shadow atlas is too small to fit lamps with shadows)
Also how to disable browser shortcuts when player is focused in WebGL window? It is very annoying
Here is PC RP screen, my guess was 8k shadow of main light, but nope not it.
(settings outside of screen not changed except depth and opaque texture in r-ing):
P.S.
Should’ve attached the renderer settings also for clarity, it is the main reason for such cases not the graphic setup in the just “asset” one.
The PC renderer settings may require unsupported shader features. Check the browser console for errors.
From memory:
HDR needs to be disabled, it is not supported on the Web. It may or may not be the reason for the error but it definitely won’t output HDR.
LOD crossfade may incur a severe performance penalty on the web (avoid transparency).
Shadow Resolution of 8k is way too much, 2k at most if not 1k. Memory on web is severely limited (specifically mobile) and memory access is relatively slow.
8 Lights per object is far too much (if you use that many lights).
Reflection probes will incur a severe performance penalty on the web.
Unsure about the remaining settings.
FWIW do use the mobile settings for web builds, and then tweak specific settings upwards. Consider that WebGL is effectively a 10 year old tech that will render about the same quality as a 10 year old mobile device, no matter how powerful the PC may be. This will only change with WebGPU support in Unity 6.1.
These settings work perfect by the way, the game is low poly, so even buffed scene is feeling ok 100+ fps on 2080. Only HDR doesn’t work comparing to PC build with PC RP.
(Though my monitor not supports it, seems that it was only empty post-process in the fresh one)
OK, fair enough. Ive known my stuff to freeze enabling it, sometimes it worked sometimes it didnt, it was worth an ask. I can tell you 8 lights can work
if you dont need the probes though, that may help
It was the problem of Forward+ in the PC RP renderer case (the new default renderer sets to just forward), and the PC RP renderer now works too without “+” also these are okay too:
P.S.
Should’ve attached the renderer settings also for clarity, it is the main reason for such cases not the graphic setup in the just “asset” one.