Open w23 opened 6 years ago
For triangle objects (or sufficiently complex scenes made of balls, boxes and walls) you will notice that iterating through all objects is slow. Skip objects that will not be hit by current ray (or ray sample). Hints: BVH, BSP, kd-trees, ...
@w23 yeah, I was thinking about using those in the future. Thanks for filing an issue for that! :)
For triangle objects (or sufficiently complex scenes made of balls, boxes and walls) you will notice that iterating through all objects is slow. Skip objects that will not be hit by current ray (or ray sample). Hints: BVH, BSP, kd-trees, ...