You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
luma's ClipSpace currently works with 2 triangles that form a square. Other frameworks (e.g. gl-react) use one big triangle, instead. There even is an npm component called a-big-triangle that shows this idea. It points to a blog post that claims that one triangle is about 8% faster than 2 triangles and leads better results.
I'm NOT an expert who could judge this difference or who could change the code correctly, therefore, a question to y'all:
Do you find it worthwhile to replace the 2 triangles by 1? Maybe it would make luma.gl faster.
To Do List
Add label and assign to milestone
Coding
Doc update
Whats new update
Test
The text was updated successfully, but these errors were encountered:
This is quite interesting! Thank you for the references. It should be easy to run benchmarks on a few different hardware setups to see if it's worth making the change.
Yes, could be worth a look. I seem to remember considering using a single larger triangle, but opted for using two perfectly fitted triangles instead. No strong reasons I believe, I was mainly focused on getting things functionally correct, didn't do any benchmarks.
Background
luma's ClipSpace currently works with 2 triangles that form a square. Other frameworks (e.g. gl-react) use one big triangle, instead. There even is an npm component called a-big-triangle that shows this idea. It points to a blog post that claims that one triangle is about 8% faster than 2 triangles and leads better results.
I'm NOT an expert who could judge this difference or who could change the code correctly, therefore, a question to y'all:
To Do List
The text was updated successfully, but these errors were encountered: