3 ms·
The batching that Disney is doing is a very recent direction and not something that is common - PBRT serves as a straight forward reference implementation. You
by CyberDildonics 11y ago
The batching that Disney is doing is a very recent direction and not something that is common - PBRT serves as a straight forward reference implementation.
You are right though that it would be fascinating to see the speed difference. My guess is that it would be substantial.
Even compiling PBRT with Intel C++ instead of Microsoft's C++ compiler gives a %30 - %50 speedup, likely due to reordering instructions for better memory coherency on a granular level (batching rays would give better memory coherency on a very broad level).
- falcolas 11y agoIt would be interesting to see PBRT re-written with C++ 11/14 idioms, and look at how that affects the execution speed as well.
- CyberDildonics 11y agoThat's also true, PBRT uses a lot of virtual functions.