Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace ZM vision dynamic light with projected texture #332

Open
L1pE opened this issue Jun 20, 2021 · 3 comments
Open

Replace ZM vision dynamic light with projected texture #332

L1pE opened this issue Jun 20, 2021 · 3 comments
Labels

Comments

@L1pE
Copy link
Contributor

L1pE commented Jun 20, 2021

ZM vision has historically been a performance killer because of its massive light_dynamic, after some tests I suggest replacing it with a projected texture like the survivors' flashlight.

I've tested a red env_projectedtexture parented to the ZM, wide enough to cover the entire FOV, reached far enough to have similar range to current ZM vision and with shadows off. It had similar performance impact to the survivors' flashlight (AKA runs much better), provided better visibility as the ZM vision light_dynamic tends to be blinding near bright surfaces and also looked better IMO.

On that note, I've also found that, despite what I've read about projected textures being the most expensive light, in my tests even small light_dynamics, if they are set to affect lightmapped brushes, will run much worse than an equivalent env_projectedtexture. Although when the light_dynamic only affects models it's p. much free even if the model has a high polygon density.

@TotallyMehis
Copy link
Member

I have meant to replace the light with a projected texture, but never got around doing it. Thanks for the reminder.

TotallyMehis added a commit that referenced this issue Nov 4, 2021
@dch-GH
Copy link

dch-GH commented May 12, 2022

Shouldn't this now be closed, marked as fixed?

@TotallyMehis
Copy link
Member

Actually nvm, this hasn't been tested yet.

@TotallyMehis TotallyMehis reopened this May 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants