Very slow Area-lamp (in viewport, on GPU-device)

Use this forum for general user support and related questions.
Forum rules
Please upload a testscene that allows developers to reproduce the problem, and attach some images.
Post Reply
S0rda
Posts: 96
Joined: Sun May 27, 2018 8:34 am

Very slow Area-lamp (in viewport, on GPU-device)

Post by S0rda »

Please answer, why is the area lamp so slow in the viewport (besides, I can move all other sources of lighting without problems), just like the mesh with the lighting (emission) shader?
Slightly faster when rendering on the processor.
My system is 6800k and 1080ti.
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: Very slow Area-lamp (in viewport, on GPU-device)

Post by B.Y.O.B. »

Behind the scenes an area light is a meshlight in LuxCore. The exporter creates a plane with two triangles with the dimensions specified in the area light settings.
S0rda
Posts: 96
Joined: Sun May 27, 2018 8:34 am

Re: Very slow Area-lamp (in viewport, on GPU-device)

Post by S0rda »

Okay. And why is it so extremely slow? I rotate the environment maps without problems without any problems (2k resolution), but the mesh (1 polygon with 4 vertices) creates large lags.
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Very slow Area-lamp (in viewport, on GPU-device)

Post by Dade »

S0rda wrote: Fri May 10, 2019 7:02 pm Okay. And why is it so extremely slow? I rotate the environment maps without problems without any problems (2k resolution), but the mesh (1 polygon with 4 vertices) creates large lags.
It needs to rebuild the BVH, how many triangles do you have in the scene ? Does it happen with a simple scene too ?
Support LuxCoreRender project with salts and bounties
S0rda
Posts: 96
Joined: Sun May 27, 2018 8:34 am

Re: Very slow Area-lamp (in viewport, on GPU-device)

Post by S0rda »

1. Sphere (2 million polygons)
2. "background" lighting with flat-color (very low value of gain - only for non-absolutly dark scene))
3. one or two area-lamps
4. I can't remember if I tested it in previous projects. It seems to be just the slowness in the previews that was the reason, even on scenes in a total of 300-500k polygons.
S0rda
Posts: 96
Joined: Sun May 27, 2018 8:34 am

Re: Very slow Area-lamp (in viewport, on GPU-device)

Post by S0rda »

Any reaction?
Fox
Posts: 437
Joined: Sat Mar 31, 2018 11:17 am

Re: Very slow Area-lamp (in viewport, on GPU-device)

Post by Fox »

Turn off blender undo memory. Blender will save new copy with every move or mouse click you make, while it does, the ui will be frozen. When you have high poly model, the frozen time is noticeable.
Set the viewport path depth to 1 or 2 for speed.
Split the blender viewport in 4 and drag the preview window small enough for good fps.
The official Blender 2.79b has really bad default openGL settings, in Windows at least, (tune this down).
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Very slow Area-lamp (in viewport, on GPU-device)

Post by Dade »

S0rda wrote: Fri May 10, 2019 7:20 pm 1. Sphere (2 million polygons)
2. "background" lighting with flat-color (very low value of gain - only for non-absolutly dark scene))
3. one or two area-lamps
4. I can't remember if I tested it in previous projects. It seems to be just the slowness in the previews that was the reason, even on scenes in a total of 300-500k polygons.
Rebuilding a BVH with 2M triangles is not a trivial task but Embree is very fast so it is hard to say without doing some comparison. I would expect to be very fast with a cube (i.e 12 triangles, not 300-500k) and to become progressively slower more triangles there are on the scene :?:
Support LuxCoreRender project with salts and bounties
Post Reply