Convert exclusive systems in Bevy to ordinary systems wherever possible #2767
Labels
C-Code-Quality
A section of code that is hard to understand or change
C-Performance
A change motivated by improving speed, memory usage or compile times
D-Trivial
Nice and easy! A great choice to get started with Bevy
I recently noticed that several exclusive systems in Bevy no longer need to be exclusive systems:
change_window
andplay_queued_audio_system
were the two I initially noticed. These were originally exclusive systems due to an inability to useNonSend
resources in parallelizable systems: this limitation has since been removed.These and any other similar cases should be converted to ordinary parallel systems (in the same stage) to improve the performance of Bevy's apps by reducing unnecessary blocking, and better communicate intent (we really don't need access to everything in the world).
bevy_mod_debug_dump may be able to assist you in grabbing a list of all of the systems to inspect. Or just search for uses of
.exclusive_system
in the code base using your IDE of choice.The text was updated successfully, but these errors were encountered: