#architecture
#ecs
#optimization
#unity
Project Last Argument: Architecture Deep Dive
📅 June 1, 2026 • ⏱️ 1 min read
Architecture Deep Dive: Building with ECS
When I started Project Dragonheart, I knew I wanted massive battles with hundreds of enemies. That meant the standard GameObject approach wouldn’t cut it. Enter Unity’s Data-Oriented Tech Stack (DOTS).
Why ECS?
Traditional Unity development uses GameObjects and MonoBehaviours. It’s great for prototyping, but cache misses become a problem when you have thousands of entities.
ECS solves this by:
- Separating data from logic (Components store data, Systems process it)
- Cache-friendly memory layouts (All Health components sit together in memory)
- Automatic jobification (Systems run in parallel by default)
Lessons Learned
- Debugging is harder — ECS removes the hierarchy, so you need custom tooling
- Not everything needs ECS — UI, audio, and some logic are fine in MonoBehaviour
- Baking matters — The authoring → baking → runtime flow requires careful planning
📖 Читать эту статью на Английском