Skip to content

Guard more event calls in hot code #14153

Description

@kennytv

Events like the entity move and collide events check the handler list listener count before being called; do this to more events in hot code, ideally with a less verbose way. In some cases (where reasonable without additional diff) it can also be better to avoid data wrapping/coping that comes with event calls.

(assigned myself for an initial lookover, but this isn't limited to just me)

Metadata

Metadata

Assignees

Labels

for: futureIssue scheduled for resolution at some point in the future.scope: performance

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions