Hello, I've been using this library with medium sized BatchedMeshes (around 2000 instances, 10000+ vertices), when I noticed large frame times (10-15 ms) and memory usage on gpu process around 5-10 GB (tested in Chrome/Safari on MacOS 26). After a bit of research I found this bug which sounds similar to my case, since your library is using flat attribute on varyings. After testing removing flat attribute I can confirm that performance problems go away. I'm not sure if it's necessary in this case, but If you don't want to remove flat the other workaround that I tested and can confirm that it works is using WEBGL_provoking_vertex extension.
Hello, I've been using this library with medium sized BatchedMeshes (around 2000 instances, 10000+ vertices), when I noticed large frame times (10-15 ms) and memory usage on gpu process around 5-10 GB (tested in Chrome/Safari on MacOS 26). After a bit of research I found this bug which sounds similar to my case, since your library is using
flatattribute on varyings. After testing removingflatattribute I can confirm that performance problems go away. I'm not sure if it's necessary in this case, but If you don't want to removeflatthe other workaround that I tested and can confirm that it works is using WEBGL_provoking_vertex extension.