Reduce the number of OpenCL kernel compilations

Discussion related to the Engine functionality, implementations and API.
User avatar
lacilaci
Donor
Posts: 1783
Joined: Fri May 04, 2018 5:16 am

Re: What about (pre-)compiling in background when using BlendLuxCore?

Post by lacilaci » Thu Jan 02, 2020 11:37 am

Dade wrote:
Thu Jan 02, 2020 11:22 am
lacilaci wrote:
Thu Jan 02, 2020 5:38 am
Make cpu rendering so fast no one cares about opencl or gpu rendering, problem solved :lol:
My RTX 2070 Super is "only" 2 times faster than my AMD 3900X. It is a huge difference compared my old PC where the GPU was several time faster than the CPU (AMD 290X Vs i7 3930K).

AMD/Intel need to put out a competitive GPU with NVIDIA: GPUs development is becoming more and more stagnant. It is the same situation of CPUs a couple of years ago.
lacilaci wrote:
Thu Jan 02, 2020 5:38 am
or.... optix :D
This thread is about CUDA support under disguise: being able to compile the GPU kernel only once is one of the requirement to be able to support CUDA. But it is a long way.
Ah, I see you upgraded finaly :D

I do believe gpu's might become more and more attractive as Vram capacities grow but corona is kinda proving that you can do a lot with cpus and very fast.

compilation isn't as big of an issue for a still frame, but i did some animation tests and when you want to render frame for 30 seconds total and 7 seconds are just compilation and session init. then you have a problem.

In comparison, cycles on optix compiles once (the first time you run new blender installation - if cycles was changed in some way) then it just starts, on top of that, changing any parameter is instant so you can tweak materials while viewport is rendering in realtime. You can do that with luxcore but only if you use cpu(slow) if you use gpu/opencl blender hangs until luxcore updates everything. This situation makes small tweaks on subtle material effects like low roughness variation extremely difficult as you can't see anything until: A. cpu clears up enough B: gpu starts rendering.

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

Re: Reduce the number of OpenCL kernel compilations

Post by Dade » Thu Jan 02, 2020 4:16 pm

Enabling/disabling camera clipping and/or OculusRift barrel doesn't require OpenCL compilation anymore (removed PARAM_CAMERA_ENABLE_CLIPPING_PLANE and PARAM_CAMERA_ENABLE_OCULUSRIFT_BARREL)
Support LuxCoreRender project with salts and bounties

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

Re: Reduce the number of OpenCL kernel compilations

Post by Dade » Sun Jan 05, 2020 3:00 pm

Changing any pixel filter related parameter doesn't require OpenCL compilation anymore (removed all PARAM_IMAGE_FILTER_*).
Support LuxCoreRender project with salts and bounties

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

Re: Reduce the number of OpenCL kernel compilations

Post by Dade » Tue Jan 07, 2020 3:02 pm

Changing camera type doesn't require OpenCL compilation anymore (removed PARAM_CAMERA_TYPE)
Support LuxCoreRender project with salts and bounties

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

Re: Reduce the number of OpenCL kernel compilations

Post by Dade » Tue Jan 07, 2020 4:08 pm

Changing any image map related settings doesn't require OpenCL compilation anymore (removed all PARAM_HAS_IMAGEMAPS_*)
Support LuxCoreRender project with salts and bounties

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

Re: Reduce the number of OpenCL kernel compilations

Post by Dade » Sun Jan 12, 2020 12:18 pm

Changing the number of light groups used doesn't require OpenCL compilation anymore (removed PARAM_FILM_RADIANCE_GROUP_*)
Support LuxCoreRender project with salts and bounties

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

Re: Reduce the number of OpenCL kernel compilations

Post by Dade » Wed Jan 15, 2020 11:40 am

Enabling/disabling BCD denoiser doesn't require OpenCL compilation anymore (removed PARAM_FILM_DENOISER).
Support LuxCoreRender project with salts and bounties

Post Reply