mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-08-02 03:42:50 +08:00
Summary: Inside the implicit function, the color and density calculations are independent and time is saved by putting them on separate streams. (In fact, colors is slower than densities, and the raymarcher does some calculation with the densities before the colors. So theoretically we could go further and not join the streams together until the colors are actually needed. The code would be more complicated. But the profile suggests that the raymarcher is quick and so this wouldn't be expected to make a big difference.) In inference, this might increase memory usage, so it isn't an obvious win. That is why I have added a flag. Reviewed By: nikhilaravi Differential Revision: D28648549 fbshipit-source-id: c087de80d8ccfce1dad3a13e71df2f305a36952e