Spotlights are too resource-intensive.

Discuss anything ZDoom-related that doesn't fall into one of the other categories.

Spotlights are too resource-intensive.

Postby DOOMGABR [RU] » Wed Feb 21, 2018 5:44 am

My question about last pre-version. Why spotlights over-consuming PC resources? Fps drops from 100 to 50 at the 4 spotlights.
Joined: 08 Jun 2016
Location: Russia

Re: Spotlights are too resource-intensive.

Postby Lud » Wed Feb 21, 2018 5:54 am

Split topic from this thread.
Joined: 11 Feb 2016

Re: Spotlights are too resource-intensive.

Postby dpJudas » Wed Feb 21, 2018 6:42 am

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.
Joined: 28 May 2016

Return to General

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 3 guests