Plans to use System.Numerics
JardarM opened this issue · 3 comments
JardarM commented
Hi,
do you have plans to make use of System.Numerics (that supports SIMD opperations) for Points? To my knowledge the System.Numerics should deliver very good performance.
JardarM commented
I had a go at using System.Numerics and got pretty significant speedup.
Testing 1.000.000 rays with an octree with 1000 objects.
Orignial code:
Time org: 00:00:24.5173687
rays/ms org: #40.78741125266024
Code as is, but using System.Numerics
Time old: 00:00:19.1715894
rays/ms old: #52.160516227204404
Optimized code (more vector operations)
Time new: 00:00:10.9149289
rays/ms new: #91.61763756427217
I did a fork with example code.