stephen-w-choo / ray-tracer-browser

3d renderer for the browser. A personal project to practice linear algebra, test-driven development and TypeScript.
0 stars 0 forks source link

Changed matrix to user the Float32Array type #9

Closed stephen-w-choo closed 7 months ago

stephen-w-choo commented 7 months ago

Changed matrix to Float32Array type. Adjusted unit tests and interface accordingly.

Now renders at 5-6 times the speed. I THINK I can potentially squeeze more performance by creating a separate dedicated 4x4 matrix class, but I think this is fine for now.