You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Commands can be cloned and passed between threads. This makes it so each thread has the same current_entity, which can cause interference; say if one does a .spawn and the other thread does a .with the other thread might pick up the current_entity from the first thread.
I suggest moving the current_entity to be outside of CommandsInternal to solve this problem.
The text was updated successfully, but these errors were encountered:
In #798 we removed the arc/mutex from Commands by default, but this issue does still exist for the new Arc<Mutex<Commands>> system parameter. We might need to swap that out for something like ParallelCommands, which would maintain the current entity in each instance.
Commands can be cloned and passed between threads. This makes it so each thread has the same
current_entity
, which can cause interference; say if one does a.spawn
and the other thread does a.with
the other thread might pick up thecurrent_entity
from the first thread.I suggest moving the
current_entity
to be outside ofCommandsInternal
to solve this problem.The text was updated successfully, but these errors were encountered: