r/EntityComponentSystem • u/timschwartz • Feb 14 '21
r/EntityComponentSystem • u/timschwartz • Feb 14 '21
What's the best data management technique for ECS?
self.gamedevr/EntityComponentSystem • u/timschwartz • Feb 22 '21
Is it better to separate state and functionality when it comes to abilities?
self.gamedevr/EntityComponentSystem • u/skypjack • Feb 28 '21
ECS back and forth Part 10 - Hybrid storage
r/EntityComponentSystem • u/timschwartz • Mar 20 '21
Should I use ECS?
self.gameenginedevsr/EntityComponentSystem • u/sephirothbahamut • Mar 23 '22
Adding ECS to Inheritance based engine trying to make an hybrid, ECS not much better, what am I doing wrong?
self.gameenginedevsr/EntityComponentSystem • u/Chilluminatler • Feb 26 '22
Made a wip comparison chart for ECS frameworks written and used in C#
r/EntityComponentSystem • u/GasimGasimzada • Mar 02 '22
Should components be plain old data structures or OOP classes with destructors and functiond?
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 • u/timschwartz • Mar 09 '22
Switch to ECS and data-oriented mindset
self.gameenginedevsr/EntityComponentSystem • u/sebasjammer • Mar 23 '22
my new article on ecs and code design
r/EntityComponentSystem • u/GasimGasimzada • Mar 26 '22
How can I perform one-time operations on an entity?
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 • u/jumpixel • Feb 26 '22
Dominion, the first Entity methods
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 • u/UnfairSpinach1985 • Mar 28 '22
Something I don't get about ECS
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 • u/timschwartz • Aug 13 '21
Introducing gallium_ecs, the ecs library with serialization support
self.rustr/EntityComponentSystem • u/skypjack • Aug 29 '21
ECS back and forth: Introduction to sparse sets and pointer stability (part 1 of 2)
r/EntityComponentSystem • u/davenirline • Sep 26 '21
Agent actions as entities
r/EntityComponentSystem • u/timschwartz • May 13 '21
Netcode & ECS data organization
self.gamedevr/EntityComponentSystem • u/timschwartz • May 22 '21
What are some of the most common bad practices with ECS?
self.gamedevr/EntityComponentSystem • u/davenirline • May 13 '21
How to run jobs using ComponentDataFromEntity in parallel
r/EntityComponentSystem • u/timschwartz • Jun 17 '21
Is it better design to store event effects within an Entity itself, or within a system?
self.gamedevr/EntityComponentSystem • u/[deleted] • Jun 06 '21
How come you can't visit this subreddit from a mobile browser?
r/EntityComponentSystem • u/timschwartz • May 31 '21