Skip to content

Reflect weighted: Instead of killing photons, reduce their weight#100

Merged
crisbour merged 2 commits into
mainfrom
reflect-weighted
May 16, 2026
Merged

Reflect weighted: Instead of killing photons, reduce their weight#100
crisbour merged 2 commits into
mainfrom
reflect-weighted

Conversation

@crisbour
Copy link
Copy Markdown
Member

Previously the photons were killed based on the reflectance probability, which I think was a bug, because:

  • Adds complexity in sampling a random variable
  • Discards useful simulated photon packet

@crisbour
Copy link
Copy Markdown
Member Author

It would be nice to have a benchmark that checks reflectivity now, to see how this impacts performance as well.
Related issue: #9

@crisbour crisbour self-assigned this May 16, 2026
@crisbour crisbour added the enhancement New feature or request label May 16, 2026
@github-actions
Copy link
Copy Markdown

🐰 Bencher Report

Branch100/merge
Testbedubuntu-latest
Click to view all benchmark results
BenchmarkLatencymicroseconds (µs)
build_objects📈 view plot
🚷 view threshold
11.46 µs
build_tree📈 view plot
🚷 view threshold
15.07 µs
diffusion_sim📈 view plot
🚷 view threshold
1,402,700.00 µs
load_parameters📈 view plot
🚷 view threshold
283.10 µs
🐰 View full continuous benchmarking report in Bencher

@github-actions
Copy link
Copy Markdown

🐰 Bencher Report

Branch100/merge
Testbedubuntu-latest
Click to view all benchmark results
BenchmarkMean Absolute ErrorMeasure (units)Root Mean Squared ErrorMeasure (units)Root Mean Squared Relative ErrorMeasure (units)Total Variation L1Measure (units)
accuracy_diffusion📈 view plot
🚷 view threshold
0.05 units📈 view plot
🚷 view threshold
0.07 units📈 view plot
🚷 view threshold
0.08 units📈 view plot
🚷 view threshold
7.41 units
🐰 View full continuous benchmarking report in Bencher

@crisbour crisbour merged commit 0decd12 into main May 16, 2026
2 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in Time-resolved MCRT May 16, 2026
@crisbour crisbour deleted the reflect-weighted branch May 16, 2026 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant