r/GraphicsProgramming • u/dariopagliaricci • May 24 '26
Metal PathTracer v3.0.0 public release
A couple months ago I shared an earlier version of my Metal Path Tracer here (v2.0.0), and since then the project has grown quite a bit.
https://www.reddit.com/r/GraphicsProgramming/s/TIjW8V7KUR
I’ve now released v3.0.0 of the project:
The renderer, written mainly in Objective-C++, C++, and Metal, targets Apple Silicon/macOS and has evolved into a fairly large experimental rendering architecture focused on physically based rendering, validation workflows, and GPU rendering research on Metal.
Current features include:
- Metal HWRT + SWRT backends
- Megakernel + wavefront rendering paths
- ReSTIR DI / ReGIR experiments
- OIDN denoising
- glTF 2.0 support
- HDR environment lighting + importance sampling
- Embree backend for validation/parity testing
- Headless EXR validation workflows
- Progressive viewport renderer with ImGui tooling
- Large scenes like Sponza, San Miguel, and Bistro
A big part of the project has been exploring architectural tradeoffs on Apple GPUs:
- wavefront vs megakernel
- ReSTIR integration in Metal
- memory residency for large scenes
- reproducible validation against Embree
The original thread generated some really useful feedback/discussion, so I thought some people here might enjoy seeing how far the project has evolved.
GitHub Link:









4
u/keelanstuart May 24 '26
No hard numbers, but are you in the FPS or SPF range? :)
2
u/BigPurpleBlob May 28 '26
Nice!
I've got some questions about ReSTIR DI / ReGIR experiments. I've tried reading the various guides to ReSTIR (and your source code) but the equations makes it hard to understand (and I'm not familiar with github).
At a practical level, what do you need to implement ReSTIR / ReGIR? Is it that each pixel needs to store a few samples? So the primary ray and a few secondary rays? So, for each ray, the hit point and direction for the secondary ray? And I presume you also need a random number, for each pixel, to choose which of the secondary rays is going to be selected for ReSTIR?
More simply, I wonder that would be needed in hardware to implement ReSTIR / ReGIR?
(Figure 3 of https://onlinelibrary.wiley.com/doi/10.1111/cgf.70059shows ranking of light sources for each pixel. I presume that a random number is used, after ranking, to randomly select a light source but in accordance with the ranking?)
Thanks for any light you can shed on this! :-)
1
u/keelanstuart May 24 '26
I don't love Apple, but your graphics are hot... well done! What's your time per frame? Cheers!
1
u/stuartcarnie May 25 '26
Congrats, this is great work!
1
u/KlayEverHood Jul 11 '26
Wooo! Impressive. Do you have a video? Is it targeting realtime or photorealistic renders?