Skip to content

Invdir speedup#76

Merged
crisbour merged 4 commits intodevelopfrom
invdir-speedup
Jan 21, 2026
Merged

Invdir speedup#76
crisbour merged 4 commits intodevelopfrom
invdir-speedup

Conversation

@crisbour
Copy link
Copy Markdown
Member

Compute 1/dir only once, such that we only use the FPU DIV only once per photon direction. Then, MUL is used for finding out intersections, saving around 100 clk cycles per intersection.

@crisbour crisbour self-assigned this Jan 21, 2026
@crisbour
Copy link
Copy Markdown
Member Author

crisbour commented Jan 21, 2026

The Ledger was the bottleneck, this change does improve performance from 16s to 9s on a particular test and I suspect any other non-trivial test will confirm this as well.
Another test: from 15s to 9s
=> about 1.7x improvement

@crisbour crisbour merged commit ff35c39 into develop Jan 21, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant