Spotlights are too resource-intensive.

Discuss anything ZDoom-related that doesn't fall into one of the other categories.
Post Reply
DOOMGABR [RU]
Posts: 97
Joined: Wed Jun 08, 2016 1:25 pm
Location: Russia
Contact:

Spotlights are too resource-intensive.

Post by DOOMGABR [RU] »

My question about last pre-version. Why spotlights over-consuming PC resources? Fps drops from 100 to 50 at the 4 spotlights.
Accensus
Posts: 2383
Joined: Thu Feb 11, 2016 9:59 am

Re: Spotlights are too resource-intensive.

Post by Accensus »

Split topic from this thread.
dpJudas
 
 
Posts: 3040
Joined: Sat May 28, 2016 1:01 pm

Re: Spotlights are too resource-intensive.

Post by dpJudas »

Large spot lights are so expensive because visibility is currently only handled at the shader level. The CPU side culling code treats them like point lights, which means they will be included in light lists for surfaces in a sphere around the spotlight, rather than just the wedge lit by it.

Basically, they cost the same as a point light at the same position and radius.
Post Reply

Return to “General”