viridia / quill

A reactive UI framework for Bevy
Apache License 2.0
125 stars 12 forks source link

Flush world before reaction iteration #27

Closed keis closed 2 months ago

keis commented 2 months ago

This fixes the issue I was facing reported in #22

I'm not sure it's a good solution but it's A solution. Apply the deferred commands after each iteration likely has some real cost :shrug:

viridia commented 2 months ago

BTW, if you wanted to reduce the performance hit, you could call flush at the beginning of the loop, but only after the first time. So it would only happen between reactions.