CTS

Results 37 comments of CTS

Now, a `move_system` in Bevy can be implemented like this: ```rust pub fn move_system_iter(mut q: Query) { q.iter_mut().for_each(|(mut pos, v)| { pos.x += v.x; pos.y += v.y; }) } ```...

> Can you provide more context on what you're actaully proposing here? What does `Add the Flecs style table iteration API to Query` concretely mean? > > Is the problem...

I believe frameworks usually do not have such a changed tick thing by default. The problem is that now many existing systems use the feature. If it is not easy...

> > But I must point out that for_each is not enough for SIMD optimization, we must access the table column directly to do that. > > That's interesting: there's...

The solution looks promising to solve issue #21861. If you want to use SIMD instructions explicitly, alignment is something you usually have to manage yourself (with an aligned allocator or...

Cloning a world with identical data and entities is useful for many applications. For instance, if bevy is used as an industrial simulation platform, multiple case studies may run at...

> So, I'm fully in favor of this API. It's useful, simple, and doesn't have the same ecosystem compatibility hazards as a general "spawn entity at this ID" API. Thank...

> I like that approach. I think that the reflection-backed approach is a good, uncontroversial approach to support cloning both entities and worlds. > > And yeah, since we're cloning...

I experimented with directly cloning components from archetype tables instead of querying individual entities from the `World`. This approach proved feasible and resulted in significant performance improvements. #### Benchmark Setup:...

I still can use the clone function i manually wrote in bevy 0.16, could you tell why it is not working for you?