Optix/RTX support

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

Re: Optix/RTX support

Post by Dade » Mon Jul 06, 2020 2:33 pm

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
Posts: 151
Joined: Sun Mar 24, 2019 4:49 pm
Location: France
Contact:

Re: Optix/RTX support

Post by TAO » Mon Jul 06, 2020 3:05 pm

Wow, superb.
Omid Ghotbi (TAO)
Download link to last MaxToLux build.👇👇
viewtopic.php?f=5&t=1010&start=160#p22925

User avatar
Sharlybg
Donor
Posts: 2142
Joined: Mon Dec 04, 2017 10:11 pm
Location: Ivory Coast

Re: Optix/RTX support

Post by Sharlybg » Mon Jul 06, 2020 3:41 pm

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
Posts: 4488
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Optix/RTX support

Post by Dade » Tue Jul 07, 2020 11:03 am

Optix/RTX support should be now complete.
Support LuxCoreRender project with salts and bounties

User avatar
Dade
Developer
Posts: 4488
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Optix/RTX support

Post by Dade » Tue Jul 07, 2020 11:06 am

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
Posts: 1930
Joined: Fri May 04, 2018 5:16 am

Re: Optix/RTX support

Post by lacilaci » 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

User avatar
Dade
Developer
Posts: 4488
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Optix/RTX support

Post by Dade » Tue Jul 07, 2020 11:48 am

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
Posts: 4488
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Optix/RTX support

Post by Dade » Wed Jul 15, 2020 3:03 pm

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
Posts: 3681
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: Optix/RTX support

Post by B.Y.O.B. » Wed Jul 15, 2020 4:10 pm

Would it make sense to build them in parallel?

User avatar
Dade
Developer
Posts: 4488
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Optix/RTX support

Post by Dade » Wed Jul 15, 2020 5:20 pm

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