Skip to content

Type erase the receive-message and receive-event systems#775

Merged
cBournhonesque merged 4 commits intomainfrom
cb/type-erase-message
Jan 5, 2025
Merged

Type erase the receive-message and receive-event systems#775
cBournhonesque merged 4 commits intomainfrom
cb/type-erase-message

Conversation

@cBournhonesque
Copy link
Copy Markdown
Owner

Two main benefits:

  • we only have one read_messages system instead of one system per message-type. There is an overhead in having many systems running (see Optimize Event Updates bevyengine/bevy#12936)
  • the read_events/read_messages logic is unified

Fixes #536

@cBournhonesque cBournhonesque merged commit 6026831 into main Jan 5, 2025
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.

Type erase message events?

1 participant