My WebGL app involves composing a number of full-screen layers. Each layer is drawn as two triangles that together cover the full screen.
"Small rendering operations are slow
GPUs are intended to be used to draw large batches of triangles at once. If you have 10,000 triangles to draw, doing it in one single operation (as WebGL allows) will be much faster than doing 10,000 separate draw operations of one triangle each. Think of a GPU as a very fast machine with a very long warm-up time. Better warm up once and do a large batch of work, than pay for the warm-up cost many times. Organizing your rendering into large batches does require some thinking, but it’s worth it."
So, my question is: instead of drawing my full screen layer as two very large triangles, would it be better to draw it as many smaller triangles?
Cheers,
Tom
--
Camptocamp SA
Tom PAYNE
PSE A
CH-1015 Lausanne
+41 21 619 10 13 (direct)
+41 21 619 10 10 (centrale)
+41 21 619 10 00 (fax)