GithubHelp home page GithubHelp logo

Comments (4)

hymm avatar hymm commented on May 27, 2024 1

If I recall correctly, @maniwani was originally opposed to being allowed to configure system-type sets due to... concerns around being deliberate about public surface area for configuration?

Yeah. Like if you do my_system.after(apply_buffers) that's almost certainly not what you actually want. I think this is less of a concern now that apply_buffers is less necessary. The other internal system that I can think of that gets added to a schedule multiple times is transform propagation. In that case users will probably adding their own set to order against since there are 2 systems responsible for propagating transforms.

from bevy.

maniwani avatar maniwani commented on May 27, 2024 1

If I recall correctly, @maniwani was originally opposed to being allowed to configure system-type sets due to... concerns around being deliberate about public surface area for configuration?

All instances of a given function will end up in the same SystemTypeSet, so if you have more than one instance of a system in the same schedule, configuring that set (or ordering on it) can be ambiguous in a very subtle way. If you add system foo and system bar where bar.after(foo), that's fine. But if you add another foo to that same schedule the bar.after(foo) constraint is implicitly applied to that one too.

IMO now that apply_deferred (the most at-risk system) is automated, if we discourage having many instances of the same system in the same schedule, then removing the limits on SystemTypeSet would be fine by me.

I think the problem would go away once all systems can be stored as entities, since there'd be no need to even have more than one instance of any system. Different schedules could grab the same instance (especially if we change the Box to an Arc).

from bevy.

maniwani avatar maniwani commented on May 27, 2024

Also just want to mention that the schedule builder currently throws an error if you apply an ordering on system type sets that have multiple members (because of the ambiguity).

from bevy.

alice-i-cecile avatar alice-i-cecile commented on May 27, 2024

Also just want to mention that the schedule builder currently throws an error if you apply an ordering on system type sets that have multiple members (because of the ambiguity).

Yep, I do like this safeguard, and think it should stay (at least for now). I think that with apply_deferred effectively no longer existing as a user-level concept + that safeguard we should be safe to relax the distinction and make configure_sets more consistent.

from bevy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.