uci-rendering / psdr-cuda

Path-space differentiable renderer
BSD 3-Clause "New" or "Revised" License
155 stars 11 forks source link

Tips on how to afford greater spp #35

Closed spock-the-wizard closed 6 months ago

spock-the-wizard commented 6 months ago

Hi there! First of all, thank you for the code and interesting work.

My issue is that I made some computation-heavy modifications, and am having trouble getting a decent spp without any OOM errors. (Currently at 4 spp… my goal is 32)

Can you provide any hints on how to modify your code to get a higher spp (maybe by splitting the ray payload) ? Also, in that case, would I need be making any modifications to the CUDA-related code you provided? (ex. code using OptiX)

Any tips would be great, thanks!

andyyankai commented 6 months ago

simple loop mutiple times and backward in each loop can work (check path replay paper) if you just want to render a clean image, you can loop the result and average with a small spp, for example 1spp * 32

andyyankai commented 6 months ago

btw use psdr-jit(https://github.com/andyyankai/psdr-jit) unless you need to run the code for guiding paper

spock-the-wizard commented 6 months ago

Ahh I see, thank you! I'll definitely try that.