bow-simulation / virtualbow

Software for designing and simulating bows
http://www.virtualbow.org/
GNU General Public License v3.0
21 stars 3 forks source link

Remove limit on number of layers #222

Closed stfnp closed 2 years ago

stfnp commented 2 years ago

15 layers ought to be enough for anybody

-- Me, at some point

The computation of limb properties uses boost::container::small_vector with a fixed capacity of 15 in some places, which limits the number of layers to that number. I don't even know what happens when it's exceeded. It was intended as a performance optimization to avoid heap allocations, but it might not even be that relevant to the overall performance since that code is only run once when setting up the simulation.

To do: