Need help with pt-three-ways?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

mattgodbolt
150 Stars 17 Forks MIT License 192 Commits 6 Opened issues

Description

Path tracing, done three ways

Services available

!
?

Need anything else?

Contributors list

# 5,321
Shell
dlang
assembl...
Haskell
195 commits
# 28,559
Conan
Postgre...
iot-fra...
cpp11
1 commit

Path tracing, done three ways

Some code sketchings for an idea I have to do a presentation on the effects of different coding styles on design and performance. It's a trivial path tracer (an extended homage to smallpt.cpp) implemented three different ways. It's not meant to be complete, or correct. Or even performant in a traditional sense (at the time of writing it has no bounding volume hierarchy acceleration).

"Ways" of implementing the code:

  1. Traditional OO with interfaces and virtual calls
  2. Functional style using std::variant, optional, ranges
  3. Data-oriented design

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.