Questions tagged [entity-component-system]
Used when referring to the Entity-Component-System (ECS) architecture.
153 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
64
views
Resource management in ECS?
I'm new to ECS. And I'm trying to create my own game in ECS. I want to ask what's the common way to do some resource management. For example, it's very common to load and unload images from disk in ...
0
votes
0
answers
14
views
Transform is not available in SystemBase Script (Unity Entities)
My player is baked entity in subscene while main camera is outside on scene. For some reason system cannot find transform of camera, GameObject was found though.
<...
1
vote
0
answers
116
views
ECS architecture in non-gaming scenario : best way to model relationships?
I'll preface the wall of text below by saying that I've next-to-no experience with game design/programming. But I've a situation that might be fairly interesting to folks here.
I'm currently working ...
0
votes
1
answer
115
views
How much slower are decent ECS frameworks supposed to be, compared to a naive array lookup?
I'm developing an ECS framework in C++ and after doing every optimization I could think of, the comparison with a naive array look up is terrible. It's 10x worse in debug mode and 3x worse in release ...
2
votes
0
answers
56
views
Best Approach for Storing / Serializing Property Value Animations
Background
I'm making a platformer game, in C#, in Monogame. I've got a middling amount of experience with gamedev, having done some mini projects in Unity in the past and deciding I don't like a big ...
0
votes
1
answer
159
views
Is it possible to make a game with a fully simulated world, with dynamic characters and environment?
Context
I really enjoy playing Skyrim. I have installed mods that make the game feel more immersive, like weapons breaking, survival mechanics, no visual information, pitch dark dungeons, etc, etc...
...
0
votes
1
answer
186
views
How to get the id of an Entity in EnTT in order to retrieve the components of an entity using the id?
I would like to implement something similar discussed in Efficient communication between entities using ECS via entt
There are two entities Ship, Engine. Ship has the components AppliedForces, Mass ...
0
votes
1
answer
171
views
Is this the right approach to ECS?
This is how I've designed my entity class. Instead of just an id, I made it a whole class:
...
0
votes
0
answers
30
views
Acquisition Of Transform Components In Parallel Via Unity's ECS
So it seems that the ECS supplies a job type for modifying transforms in parallel chunks, albeit not burst-compatible. However, you have to build the ...
0
votes
0
answers
311
views
How to efficiently instantiate large amount of GameObject?
The topic with the same title here
How to efficiently spawn & render many cube prefabs for a voxel world?
is actually asking about efficiently rendering.
Assume I need to instantiate a lot of ...
1
vote
0
answers
155
views
How can I efficiently make a delta snapshot that accounts for entities/components that have been added/removed?
In reference to the snapshot and delta compression approach popularized by Quake 3, but with ECS.
Understand the delta should only contain changes — makes sense.
However, if a snapshot delta no longer ...
0
votes
1
answer
281
views
How do Entity Component Systems work?
In the project I am working on, I recently ran into a problem of software architecture:
I created a base entity class that displays a world object. Then I added functionality for the entity to have a ...
0
votes
0
answers
256
views
What was the Entity-Component-System (ECS) derived from?
I am asking about some programming history here.
"In 1998, Thief: The Dark Project pioneered an ECS. The engine was later used for its sequel, as well and System Shock 2."
According to the ...
0
votes
0
answers
133
views
Preventing "pass through" situations properly when using ECS based collision detection
package versions I'm using:
Entities: com.unity.entities Version 0.51.1-preview.21
Documentation URL: https://docs.unity3d.com/Packages/[email protected]/manual/index.html
Physics: com.unity....
0
votes
1
answer
435
views
How to go about executing lua scripts in a ECS engine?
I'm trying to add scripting with lua to my C++ game engine, and I'm pretty stumped on how to tackle the executing/processing part. I started by creating a ...