-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example of parallel processing of a SystemSet #1989
Comments
I have a PR up for an example of system sets. I haven't gotten a lot feedback on the PR yet though so I'm not sure if it's idiomatic/correct/clear at this point, but it might at least point you in the right direction. |
Thanks for the reply. I like reading this example. I am not sure it is doing what I wish for it todo. But it is such a nicely written example. My problem is that the repetition has to run "separately". Imagine like if I basically was simulating an NPC separately, or separate games. |
I'm still unable to do this, and it is beginning to become important for my project. I'd appreciate it if anyone had some ideas on how to do it. |
Have you seen the new Render Rework? It includes a SubApps experiment. |
Would it work in your case to tag entities specific to a scenario with a unit struct Scenario1, and have everything in one app, with your systems only making interactions between entities with the same tag? |
It wouldn't necessarily not work. But it is less than ideal. I don't want
to figure out how many
repetitions to schedule simultaneously. Nor do I want to pollute all the
systems with having repetitions
as a marker, etc.
I also don't see that Bevy supports "taggy" behaviour. I'm not sure it
would translate to good performance
in the long run.
Also, I have some other things, that I'm unsure about. Like, are resources
then going to have a repetition id
attached to them. What if I wanted a resource shared across repetitions? Is
`ResMut` a sort of `Mutex` or is it
not?
I'll investigate the other hints, but right now, I'm really unsure about
things.
Thanks for the advice folks.
…On Wed, 23 Jun 2021 at 01:26, François ***@***.***> wrote:
Would it work in your case to tag entities specific to a scenario with a
unit struct Scenario1, and have everything in one app, with your systems
only making interactions between entities with the same tag?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1989 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAIDVSA5O22SH6LY4O5BHJTTUELZVANCNFSM43OIH7RQ>
.
|
I'm working on using Bevy to facilitate an ecological (scientific) simulation model. To that end, I need to repeat/replicate the positted scenario a number of times, while using already available resources, and also having some things that pertain to the
particular iteration. Also, I need to reset some resources/etc. after each run.
There is a discussion on this here #1678, where @alice-i-cecile called this
and also there is this RFC for SubWorlds bevyengine/rfcs#16 that could help with this.
If someone could pinpoint some way to accomplish today, that would be great so as to be able to get going for now.
The text was updated successfully, but these errors were encountered: