bevyengine / bevyengine/bevy

Opt-out (or opt-in) warnings when missing an event

Open
#7,089 1 comment 0 reactions 0 assignees View on GitHub
A-Diagnostics A-ECS D-Complex
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 22h
Merged PRs (30d)
161

Description

## What problem does this solve or what need does it fill?

Not handling an event can be a source of hard-to-diagnose issues, when the expectation is that all events are handled. This may occur, for example, when events are read with a system governed by a FixedTimestep run criterion.

Note that all events are necessarily required to be handled. Many events emitted by the engine are of that nature: see #6595. However, events sent from user code usually must be handled to have correct behaviour.

## What solution would you like?

Adding the warning back, but with the ability to opt-out (or opt-in) to the warning for missed events.

## What alternative(s) have you considered?

Always using `ManualEventReader` and checking for missed events.

## Additional context

Previously introduced in #5730 for all events, removed in #6730 as it raised too many false positives.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.