Why is there a limit of 8 lightgroups?
Posted: Fri May 08, 2020 2:02 pm
That's it, simple question 
Why is there a limit of 8 lightgroups?
Thanks!
Why is there a limit of 8 lightgroups?
Thanks!
Show your work, get help, participate in development
https://forums.luxcorerender.org/
Mostly because of GPUs/OpenCL, I must have a finite number there.juangea wrote: Fri May 08, 2020 2:02 pm That's it, simple question
Why is there a limit of 8 lightgroups?
Yup, it would increase the size of the SampleResult structure, there is a SampleResult structure for each thread and there are hundred of thousands of GPU threads.B.Y.O.B. wrote: Sat May 09, 2020 10:54 am @Dade, I guess this would not raise memory consumption when the max. number of light groups is not actually used, right?
Yes, GPU structures must have a fixed size or it would require conditional compilation (i.e. kernel re-compilation). There are other options (i.e. store the values in a dedicated buffer, not inside the SampleResult structure) but are complex.B.Y.O.B. wrote: Sat May 09, 2020 11:34 am Oh, so my statement was wrong, it would have an impact even if no lightgroups are used at all.