Optix/RTX support

Discussion related to the LuxCore functionality, implementations and API.
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Optix/RTX support

Post 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).
Support LuxCoreRender project with salts and bounties
User avatar
TAO
Developer
Developer
Posts: 850
Joined: Sun Mar 24, 2019 4:49 pm
Location: France
Contact:

Re: Optix/RTX support

Post by TAO »

Wow, superb.
User avatar
Sharlybg
Donor
Donor
Posts: 3101
Joined: Mon Dec 04, 2017 10:11 pm
Location: Ivory Coast

Re: Optix/RTX support

Post 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:
Support LuxCoreRender project with salts and bounties

Portfolio : https://www.behance.net/DRAVIA
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Optix/RTX support

Post by Dade »

Optix/RTX support should be now complete.
Support LuxCoreRender project with salts and bounties
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Optix/RTX support

Post 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).
Support LuxCoreRender project with salts and bounties
User avatar
lacilaci
Donor
Donor
Posts: 1969
Joined: Fri May 04, 2018 5:16 am

Re: Optix/RTX support

Post 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
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Optix/RTX support

Post 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.
Support LuxCoreRender project with salts and bounties
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Optix/RTX support

Post 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).
Support LuxCoreRender project with salts and bounties
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: Optix/RTX support

Post by B.Y.O.B. »

Would it make sense to build them in parallel?
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Optix/RTX support

Post 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.
Support LuxCoreRender project with salts and bounties
Post Reply