Skip to content

make window lifecycle/meta events observable - #25702

Open
laundmo wants to merge 1 commit into
bevyengine:mainfrom
laundmo:window-lifecycle-events
Open

make window lifecycle/meta events observable#25702
laundmo wants to merge 1 commit into
bevyengine:mainfrom
laundmo:window-lifecycle-events

Conversation

@laundmo

@laundmo laundmo commented Sep 6, 2026

Copy link
Copy Markdown
Member

Objective

Make some window "events" actual events, in addition to messages.

Alternative to

Solution

In #25567 the issue of performance of things like pointer move events was raised. These could theoretically happen thousands of times per frame, making them a potentially bad fit for observers.

This PR is a stripped-back version of #25567 which only keeps the Event implementations for "window lifecycle"/meta events, those which happen rarely, such as windows being created, resized, destroyed, the scale factor changing, a file being dropped on the window, etc.

Testing

  • cargo check

TODO if we go forward with this

  • Documentation
  • Potentially updating some examples
  • Showcase?

@laundmo laundmo added A-Windowing Platform-agnostic interface layer to run your app in C-Usability A targeted quality-of-life change that makes Bevy easier to use X-Contentious There are nontrivial implications that should be thought through labels Sep 6, 2026
@laundmo laundmo added the S-Adopt-Me The original PR author has no intent to complete this work. Pick me up! label Sep 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Windowing Platform-agnostic interface layer to run your app in C-Usability A targeted quality-of-life change that makes Bevy easier to use S-Adopt-Me The original PR author has no intent to complete this work. Pick me up! X-Contentious There are nontrivial implications that should be thought through

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant