Page 2 of 6

Re: Optix/RTX support

Posted: Mon Jul 06, 2020 2:33 pm
by Dade
Added the support for (multi-key) motion blur with Optix:

motion.jpg

PATHOCL with CUDA => samples/sec 8.36M
PATHOCL with CUDA+Optix => samples/sec 9.38M

Optix speedup: 12% (this is a remarkable result given how simple the test scene is: only 260k triangles).

Re: Optix/RTX support

Posted: Mon Jul 06, 2020 3:05 pm
by TAO
Wow, superb.

Re: Optix/RTX support

Posted: Mon Jul 06, 2020 3:41 pm
by Sharlybg
Added the support for (multi-key) motion blur with Optix:
Can't wait to test it ! :D btw 260K for just a Luxball :shock:

Re: Optix/RTX support

Posted: Tue Jul 07, 2020 11:03 am
by Dade
Optix/RTX support should be now complete.

Re: Optix/RTX support

Posted: Tue Jul 07, 2020 11:06 am
by Dade
BTW, Optix builds the BVH on GPU while before it was built on CPU. Since we started to use Embree to build the BVH also for GPUs, BVH pre-processing time has never been a problem however this may lead to some performance difference if you have a very fast CPU with a very slow GPU (i.e. slower pre-processing) or a very slow CPU with a very fast GPU (i.e. faster pre-processing).

Re: Optix/RTX support

Posted: Tue Jul 07, 2020 11:25 am
by lacilaci
Dade wrote: Tue Jul 07, 2020 11:03 am Optix/RTX support should be now complete.
optix/denoiser next? would be nice for fast feedback in previews

Re: Optix/RTX support

Posted: Tue Jul 07, 2020 11:48 am
by Dade
lacilaci wrote: Tue Jul 07, 2020 11:25 am
Dade wrote: Tue Jul 07, 2020 11:03 am Optix/RTX support should be now complete.
optix/denoiser next? would be nice for fast feedback in previews
Yes but after some work to use Embree on CPU when using Optix on GPU: v2.4 has to use our BVH code when using our BVH on GPU. I want to improve the situation allowing the use of different types of accelerators for CPU and GPU. This should speed up the rendering by a significative margin when doing CPU+GPU renderings.

Re: Optix/RTX support

Posted: Wed Jul 15, 2020 3:03 pm
by Dade
It may be not obvious but Optix builds the accelerator on GPUs while Embree on CPUs so, on an average PC, the pre-processing will be faster:

Code: Select all

[LuxRays][2.434] Total vertex count: 3625259
[LuxRays][2.434] Total triangle count: 5519621
[LuxRays][2.815] EmbreeAccel build time: 380ms
[LuxRays][2.928] Optix total build time: 112ms
Optix is about 3 times faster (however I doubt it will make any practical difference on most scenes because Embree is fast "enough" and it will built anyway if you do CPU+GPU rendering).

Re: Optix/RTX support

Posted: Wed Jul 15, 2020 4:10 pm
by B.Y.O.B.
Would it make sense to build them in parallel?

Re: Optix/RTX support

Posted: Wed Jul 15, 2020 5:20 pm
by Dade
B.Y.O.B. wrote: Wed Jul 15, 2020 4:10 pm Would it make sense to build them in parallel?
It looks like a lot of effort to (may be) save 100ms over 400ms on the total rendering time: it doesn't look worth the effort.