Skip to content

Audit filters being declared unnecessarily when a shared static one will suffice #14417

Open
muz wants to merge 12 commits intomagefree:masterfrom
muz:filter_cleaning
Open

Audit filters being declared unnecessarily when a shared static one will suffice #14417
muz wants to merge 12 commits intomagefree:masterfrom
muz:filter_cleaning

Conversation

@muz
Copy link
Contributor

@muz muz commented Feb 14, 2026

Got called out for this on a couple of PRs in the past.

Took a peek and this is by no means all of them; but there's plenty of instances of new filters being declared where they're not needed. The StaticFilters are there to help prevent the client having to create extra objects across the course of the game - so let's use them where we can.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant