Changes

Jump to: navigation, search

Processingjs paper

5 bytes added, 18:00, 4 January 2011
WebGL section
Performance is always a concern when rendering 3D content, so it was necessary to create a faster versJavaScript'script's inherently slow arrays types. Because of this, typed arrays were incorporated into pre-release versiWebGLf WebGL browsers. Unlike regular arrays which can contain different types such as strings, numbers and objects, typed arrays can only contain one type and cannot by dynamically resized. Some of these types include Float32Intay, Int32Uinty, Uint16ArrUintnd Uint8Array. These types provide a significant performance increase when manipulating arrays.
<table border="1">
 
<tr>
<td>Operation</td>
<td>Array</td>
<td>Float32Array</td>
<td>Write</td>
</tr>
</table>
Operation
Array
Float32Array
Write
8947
1455
Read
1948
1109
Loop-Copy
>10,000 ms
1969
Slice-Copy
1125
503
Win7 64Bit, 4GB Ram, Dual-Core 1.30Ghz Intel U7300
(citation needed)
1
edit

Navigation menu