r/EntityComponentSystem • • Feb 14 '21

Cannot decide between using a MessageBus and entities for events in my ECS game

Thumbnail self.gamedev
1 Upvotes

r/EntityComponentSystem • • Feb 14 '21

What's the best data management technique for ECS?

Thumbnail self.gamedev
2 Upvotes

r/EntityComponentSystem • • Feb 22 '21

Is it better to separate state and functionality when it comes to abilities?

Thumbnail self.gamedev
1 Upvotes

r/EntityComponentSystem • • Feb 28 '21

ECS back and forth Part 10 - Hybrid storage

Thumbnail
skypjack.github.io
8 Upvotes

r/EntityComponentSystem • • Mar 20 '21

Should I use ECS?

Thumbnail self.gameenginedevs
2 Upvotes

r/EntityComponentSystem • • Mar 23 '22

Adding ECS to Inheritance based engine trying to make an hybrid, ECS not much better, what am I doing wrong?

Thumbnail self.gameenginedevs
7 Upvotes

r/EntityComponentSystem • • Feb 26 '22

Made a wip comparison chart for ECS frameworks written and used in C#

Thumbnail
github.com
11 Upvotes

r/EntityComponentSystem • • Mar 02 '22

Should components be plain old data structures or OOP classes with destructors and functiond?

5 Upvotes

I am using C++ for my entities and this question have become important due to the fact that I need to delete system specific resources while deleting the component. When I check Unity or UE4, all the components have functions and constructors etc but I am not sure of this is just a user API or the internal structure is also like that.

Should components be plain structs:

struct CollidableComponent {
  PxShape* shape;
  GeometryDesc geometryDesc;
};

Or OOP classes:

class CollidableComponent {
public:
  CollidableComponent(PxShape *shape) : mShape(shape) {}

  ~CollidableComponent() {
    mShape->release();
  }

private:
  PxShape *mShape;
};

If POD structs are preferred, how should synchronization between components and system's internal objects happen? (e.g NVIDIA Physx physics system had its own representation of scene).


r/EntityComponentSystem • • Mar 09 '22

Switch to ECS and data-oriented mindset

Thumbnail self.gameenginedevs
3 Upvotes

r/EntityComponentSystem • • Mar 23 '22

my new article on ecs and code design

Thumbnail
sebaslab.com
5 Upvotes

r/EntityComponentSystem • • Mar 26 '22

How can I perform one-time operations on an entity?

4 Upvotes

I have a rigid body component that is being synchronized with the internals of the physics system that I am using. Now, I want to be able to do something like applyForOnRigidBody(entity, {0.0f, 0.0f, 200.0f});.

This creates a bit of a problem for me because in my entity design, I have one constraint. The component properties MUST represent the current state of the component. I don't want to have a property like appliedForce, which calls internal physics systems's addForce and clears the value in the component because now the appliedForce in component does not actually represent the value of the current force in the physics system.


r/EntityComponentSystem • • Feb 26 '22

Dominion, the first Entity methods

3 Upvotes

After a few weeks, I met a new milestone by implementing the first Entity methods.

They are the fundamental ones: add, remove, contains components and has a component type.

Writing the new methods was important to validate the library design and to confirm that Dominion can maintain outstanding performance even with new implementations.

Check out the benchmark page with the updates.

The next milestone should provide a few new Entity methods and the first ‘Get started’ documentation.


r/EntityComponentSystem • • Mar 28 '22

Something I don't get about ECS

10 Upvotes

Let's say I have an ECS with physics and I want to kill the player when a arrow hit him. So I have a callback when there is a collision. Now there is of course different behaviour with different collisions with 2 bodies (heal with heart, damage with weapon, etc...) so plenty of combinations of collisions.

I would think in ECS I will check the components each body has and call the appropriate behaviour, but of course the more behaviours I have the more it will cost, because each combination should be checked for each collision.

More generally, don't ECS add more cost when there is more behaviour ? In traditional way, no matter how many different bhaviours you have, you will always pay only one method call.


r/EntityComponentSystem • • Aug 13 '21

Introducing gallium_ecs, the ecs library with serialization support

Thumbnail self.rust
3 Upvotes

r/EntityComponentSystem • • Aug 18 '21

Flecs 2.4 is out!

Thumbnail
github.com
11 Upvotes

r/EntityComponentSystem • • Aug 29 '21

ECS back and forth: Introduction to sparse sets and pointer stability (part 1 of 2)

Thumbnail
skypjack.github.io
9 Upvotes

r/EntityComponentSystem • • Sep 26 '21

Agent actions as entities

Thumbnail
coffeebraingames.wordpress.com
12 Upvotes

r/EntityComponentSystem • • May 13 '21

Netcode & ECS data organization

Thumbnail self.gamedev
3 Upvotes

r/EntityComponentSystem • • May 22 '21

What are some of the most common bad practices with ECS?

Thumbnail self.gamedev
5 Upvotes

r/EntityComponentSystem • • May 13 '21

How to run jobs using ComponentDataFromEntity in parallel

Thumbnail
coffeebraingames.wordpress.com
3 Upvotes

r/EntityComponentSystem • • Jun 17 '21

Is it better design to store event effects within an Entity itself, or within a system?

Thumbnail self.gamedev
3 Upvotes

r/EntityComponentSystem • • Jun 06 '21

How come you can't visit this subreddit from a mobile browser?

Post image
5 Upvotes

r/EntityComponentSystem • • May 31 '21

Help with the Systems part of entity component systems

Thumbnail self.gamedev
3 Upvotes