bevy-console icon indicating copy to clipboard operation
bevy-console copied to clipboard

Command systems run all the time

Open makspll opened this issue 3 years ago • 3 comments

Currently the system provided to add_console_command run every frame, this seems inefficient to me, would it be possible instead to run these systems only when the command event fires instead ?

makspll avatar Apr 28 '22 17:04 makspll

Currently in bevy every system runs every frame

shmelrad avatar Jun 20 '22 19:06 shmelrad

iyes_loopless could give you a way to manage conditional execution of systems

brandon-reinhart avatar Jul 18 '22 22:07 brandon-reinhart

I was thinking some sort of run condition which checks if there are outstanding console events, before running the possibly many console systems would be preferable, albeit it would be a small performance improvement

makspll avatar Aug 09 '22 14:08 makspll

Closed in #41

makspll avatar Mar 18 '23 16:03 makspll