GPU Instancing issue in WebGL builds
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.