
30. WebGL Models: End-to-End 441
1998
1887
1776
1665
1554
1443
1332
1221
1110
999
888
777
666
555
444
333
222
111
0
–0.45
–0.3
–0.15
–0
0.15
Value
Index
Original
Optimized
Figure 30.5. Effect of optimization on x position.
even an index that goes off the charts. After optimization, the indices form a much
smoother line. Because of pretransform vertex-cache optimization, there are no large
forward jumps, and because of post-transform vertex-cache optimization, backwards
jumps are relatively small.
Vertex-cache optimization also affects attributes. There is a definite pattern to
the original data; they were originally captured by laser, so the periodic scanning is
apparent. The