Comments (4)
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.
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.
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.
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)
- 0.13 error (in desc) but v 0.12 works HOT 7
- Time is faster for unfocused windows HOT 2
- User-mode data execution prevention (DEP) violation when loading Dynamic Plugins HOT 1
- Add a convinence macro to create a color from a hex code / const function with comptime error HOT 1
- Input not getting captured on hyprland with wayland feature HOT 4
- Loading a glTF scene doesn't use the correct UV map for ambient occlusion HOT 4
- Rename Rect.inset() to Rect.inflate()
- Rounded corners are not clipped HOT 1
- Offer VMin and VMax functions for GridTracks
- Likely overpadded motion blur struct HOT 1
- Asset change detection escape hatch to make `Mut<A>` possible
- Point light docs should explain fields
- Bloom causes massive performance hit (>50% framerate reduction) HOT 12
- Reflect everything by default & make it opt out HOT 3
- Bevy chooses CPU render device instead of integrated GPU HOT 3
- Provide a MapEntities implementation that doesn't require mutable access to the EntityMapper HOT 1
- 3D causes wgpu error spam in console when using GLES HOT 1
- Crash when using Camera2DBundle without HDR + TonyMcMapFace tonemapping HOT 4
- Incorrect UV map used when using Lightmap component HOT 4
- Ability to detect if touch input is available
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bevy.