open-pv / simshady

Simulating Shadows for PV Potential Analysis on 3D Data in the Browser :sunny:
https://open-pv.github.io/simshady/
Apache License 2.0
7 stars 0 forks source link

Get rid of vec3 #2

Closed khdlr closed 6 months ago

khdlr commented 6 months ago

vec3 is horrible for performance. @MartGro and I were just profiling the midpoint calculation. With the vec3 code, calculating midpoints takes 3700ms. After rewriting in vanilla js, it now takes 3ms.

-> We should probably get rid of vec3 altogether.

khdlr commented 6 months ago

Fixed with 3cfc4dc5f5ba71eaccb80e633808f70e6aac976b