sin/cos optimizations, cleanup, and optimizations
This commit is contained in:
17
Notes.md
Normal file
17
Notes.md
Normal file
@@ -0,0 +1,17 @@
|
||||
## sin and cos optimizations:
|
||||
### Setup/Info:
|
||||
- measured in ms/agent ticked
|
||||
- 2048 iterations
|
||||
- average of 3 trials
|
||||
- 256x256 grid
|
||||
- 1 << 20 particles
|
||||
- 1 population
|
||||
### Results:
|
||||
- normal sin + normal cos:
|
||||
- 0.000018192ms
|
||||
- old sin + old cos:
|
||||
- 0.000019803ms (8.85% slower)
|
||||
- fast_approx::fast::sin + fast_approx::fast::cos
|
||||
- 0.000018658ms (2.56% slower)
|
||||
- fast_approx::faster::sin + fast_approx::faster::cos
|
||||
- 0.000015878ms (14.57% faster)
|
||||
Reference in New Issue
Block a user