Open starwolfy opened 9 months ago
Create a publicly accessible SystemSet and add them to important renet systems such as send_packets. So user code can use and configure the execution order of these sets within their own app.
There is RenetReceive
and RenetSend
, with an open PR #134 to improve the situation further.
I agree that injecting the schedules would be useful.
I did not know about RenetReceive
and RenetSend
. This makes my request for more system sets unneeded.
Still though, being able to pass any schedule is still something powerful that is missing. This may put systems currently separated by schedules (PreUpdate, PostUpdate) into the same schedule if the user desires. To maintain the intended system order perhaps a SystemSet that simply has two Pre / Post elements for systems would suffice.
Two features would allow for custom scheduling inside a Bevy loop:
Schedule
s toRenetServerPlugin
andRenetClientPlugin
and pass it to plugin configurations to replace hardcodedPreUpdate
andPostUpdate
schedules.bevy_xpbd
implemented support for custom schedules the same way.SystemSet
and add them to important renet systems such assend_packets
. So user code can use and configure the execution order of these sets within their own app.A user may also desire to run systems with the currently hardcoded
PreUpdate
andPostUpdate
schedules in the same schedule. In this case the plugin systems ordering must strictly rely on theSystemSet
by configuringApp
withconfigure_sets
to chain the elements of theSystemSet
in the desired order.