GaryHuan9 / Echo

An awesome ray traced 3D renderer build in C# from scratch!
MIT License
18 stars 3 forks source link

[Feature Request] Use the alias method for DiscreteDistribution1D #56

Open ClemensU42 opened 1 year ago

ClemensU42 commented 1 year ago

Is your feature request related to a problem? Please describe. The DiscreteDistribution1D.BinarySearch function is the third most intensive operation while rendering.

Describe the solution you'd like Use the alias method for DiscreteDistribution1D from this paper: https://www.keithschwarz.com/darts-dice-coins/