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.
..what do they mean? caused by Shapes how? like if it works on all other platforms just fine then it sounds like a Unity or browser bug to me ;-;
Yes, it doesn't appear to make much sense. They should've at least mentioned how they arrived at that conclusion.
Anyway, I tried webgl1 and it works just fine. By the time they decide to deprecate it, I hope they'll inadvertently fix the issue.