GPU Instancing issue in WebGL builds
Hi,
I wrote you an email yesterday about the bug that I found, but since I had some time, I also made a small repro project. https://github.com/LanceTreiber/ShapesBug1
- add the Shapes assets
- Run it - the controls are: RMB to pan, Mouse wheel to Zoom Out
I'm simply spawning a 1000 prefabs with a Rectangle on Start, and it works fine in Editor, but it's buggy in WebGL builds.
In Editor, you get a staircase:
Same build in WebGL: most rects aren't displayed. When I had more intricate stuff in my full project, rects sometimes displayed in wrong sizes or could take up the entire world. It's just wonky.
Turning off GPU instancing on the rectangles fixes it, but produces low FPS for obvious reasons.
have you tried different browsers? this seems like it's potentially the same bug as here, which turned out to be Unity's fault, but then turned out to be google's fault for chrome specifically
https://shapes.userecho.com/en/communities/1/topics/182-webgl-incorrect-polygon-and-disc-fill-color