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

perf: optimize particle lights #702

Merged
merged 20 commits into from
Oct 28, 2024
Merged

perf: optimize particle lights #702

merged 20 commits into from
Oct 28, 2024

Conversation

doodlum
Copy link
Owner

@doodlum doodlum commented Oct 27, 2024

Optimised particle light scanning. It now only scans once, storing the cache result, including the scan of the vertex colours. If the material is modified it will still be reflected ingame.
Contact shadows and parallax shadows are disabled on particle lights.
Light flags use a fake enum in HLSL.
Removed the GetRenderPasses hook since it's not needed.
Disabled shadows on non DefShadow shaders, and disabled on water/effect shaders.
Fixed parallax shadows being applied incorrectly.
Replaced the particle lights map with a vector.
Removed the particle light optimisation radius setting, to simplify.

@alandtse alandtse changed the title feat: particle light optimisation perf: optimize particle light Oct 27, 2024
@doodlum doodlum changed the title perf: optimize particle light perf: optimize particle lights Oct 28, 2024
@doodlum doodlum merged commit 78c89f4 into dev Oct 28, 2024
4 checks passed
@doodlum doodlum deleted the particlelightsopt2 branch October 28, 2024 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant