paullewis/a3 — Issue #1: Tears drawing 200.2k triangles
Author: williamlang
Created: 2011-10-26 18:51:13+00:00
State: open

Code used:

```javascript
var x = y = 110;
var indices = 0;
for (i = 0; i < x; i++) {
for (j = 0; j < y; j++) {
vertices.push(new A3.Vertex(i + 1, j + 1, 1)); //0
vertices.push(new A3.Vertex(i , j + 1, 1)); //1
vertices.push(new A3.Vertex(i , j, 1)); // 2
vertices.push(new A3.Vertex(i + 1, j, 1)); // 3

faces.push(new A3.Face3(indices , indices + 1, indices + 3));
faces.push(new A3.Face3(indices + 1, indices + 2, indices + 3));
//faces.push(new A3.Face3(indices + 3, indices + 1, indices + 0));
//faces.push(new A3.Face3(indices + 3, indices + 2, indices + 1));

colors.push(new A3.V3(1, 0, 0));
colors.push(new A3.V3(1, 0, 0));
colors.push(new A3.V3(1, 0, 0));
colors.push(new A3.V3(1, 0, 0));

indices += 4;
}
}
```