#Is there a `EventReader` for only one system?

4 messages · Page 1 of 1 (latest)

twilit jolt
#

If I know the event is only going to be shipped to one system, is there an alternative to EventReader? The reason I'm asking is because, with EventReader I have to access the events by ref leading to unnecessary copies in the instead of just consuming the event stream.

deep dawn
#

well, events are designed to be consumed by multiple systems. i think the performance gain you'd get from remaking everything so it doesn't copy would likely be not worth the effort

twilit jolt
#

I was just asking if there was an alternative in bevy that I had overlooked, thanks

deep dawn
#

not that i know of, sorry