~/talk

Path Tracing Three Ways: A Study of C++ Style

Talkat CppCon 2019 · 2019-09-15..09-20· [software-architecture, computer-vision]
slides:none on file

Three versions of a toy path tracer are implemented and compared: object‑oriented, functional (C++ ranges, tl::optional) and data‑oriented, with source on GitHub and Compiler Explorer used for inspection. Benchmarks show the DoD build retires 150 billion instructions vs ~252B for OO/FP but suffers a 12% branch miss rate on triangle-heavy scenes (970 triangles), making it slower; a local fix using a bitwise-or trick to combine checks reduces misses and speeds the code ~36%. Tools: perf/stat and targeted microbenchmarks.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 3:02Three C++ styles overview
  3. 11:24Object-oriented path tracing
  4. 23:13Functional programming approach
  5. 33:28Data-oriented design method
  6. 40:12Performance comparison results
  7. 43:21Debugging branch prediction issues
  8. 53:16Future directions and conclusions
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.