FLECS - The Fast Lightweight Entity Component System (C/C++)

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ม.ค. 2025

ความคิดเห็น • 42

  • @gamefromscratch
    @gamefromscratch  ปีที่แล้ว +2

    Links
    gamefromscratch.com/flecs-fast-and-lightweight-entity-component-system/
    -----------------------------------------------------------------------------------------------------------
    *Support* : www.patreon.com/gamefromscratch
    *GameDev News* : gamefromscratch.com
    *GameDev Tutorials* : devga.me
    *Discord* : discord.com/invite/R7tUVbD
    *Twitter* : twitter.com/gamefromscratch
    -----------------------------------------------------------------------------------------------------------

  • @DavidEvans_dle
    @DavidEvans_dle ปีที่แล้ว +40

    Running it on my toaster! Imagine making breakfast.
    EntityBread has flourComponent, MilkComponent, YeastComponent...

    • @alexs2195
      @alexs2195 9 หลายเดือนก่อน +1

      A toaster cant make bread, it just toast it, its TOASTER

    • @jwadaow
      @jwadaow 8 หลายเดือนก่อน +1

      @@alexs2195 The beauty of ECS is you can add a kneading component and bake the entities before toasting.

  • @dadlord689
    @dadlord689 ปีที่แล้ว +29

    Kind of weird that I just have looked on it and now there is a video about it in my feed. WTH?

    • @RealPeoplePerson
      @RealPeoplePerson ปีที่แล้ว

      Same! Been reading up on it all weekend-and here comes a video!

    • @IronKore
      @IronKore ปีที่แล้ว +1

      Googles always watching me....

    • @blackcitadel37
      @blackcitadel37 ปีที่แล้ว +1

      They're testing GPT-5. You've been chosen

  • @יובלהרמן-ח2ד
    @יובלהרמן-ח2ד ปีที่แล้ว +3

    I fill like I'm drowning in tools and concepts lately... really hard to keep up

  • @Stowy
    @Stowy ปีที่แล้ว +12

    i wonder how it compares to entt

    • @averageturtlee
      @averageturtlee ปีที่แล้ว +3

      I was wondering the same thing!

    • @theytittylyrics
      @theytittylyrics ปีที่แล้ว +6

      Imo Flecs is more fitting for games since it supports hierarchies out of the box

    • @Jaynitix
      @Jaynitix ปีที่แล้ว +4

      I've used both and eventually decided to stick with entt despite some appealing aspects of flecs (namely compile times). In flecs performance degrades quickly as fragmentation occurs - it's fine I'm sure if you want to design around that but I very much prefer not having to care about fragmentation with entt.

    • @michaelzomsuv3631
      @michaelzomsuv3631 ปีที่แล้ว +1

      @@Jaynitix What? When's the last time you used flecs? How did you measured these so called fragmentation problems? That just sounds innacurate.

    • @Jaynitix
      @Jaynitix ปีที่แล้ว

      ​ @Michael Zomsuv Only a few weeks ago. It is trivial to reproduce by creating a function to add some number of dummy components to entities to introduce the table fragmentation. My setup was around 80k entities with up to 30 added dummy components. I saw a 4x frametime increase with flecs and no difference with entt (as you'd expect) from roughly the same starting point before adding the dummy components. As I said though, there are ways to design around it and there are various discussions on the flecs discord channel about how you might do that - but for me I'd rather not have to worry about it.
      Another way to see this is using the built-in hierarchy system - it introduces fragmentation due to how it represents the child/parent relationships. Just create a lot of entities with fine grained hierarchies.

  • @Whag09
    @Whag09 ปีที่แล้ว +14

    does it run crysis ?

    • @snesmocha
      @snesmocha ปีที่แล้ว +7

      um, do you realize this is an ecs and not a pc right......
      edit, meant to say ecs, not game engine

    • @eightsprites
      @eightsprites ปีที่แล้ว

      yes

    • @ArnCiS96
      @ArnCiS96 ปีที่แล้ว

      It will

  • @wanbabigyu
    @wanbabigyu ปีที่แล้ว +1

    is there any tutorial about how to use flecs in unity?

    • @kodingamedev
      @kodingamedev ปีที่แล้ว +5

      For Unity you would use DOTS to use ECS

  • @alec_almartson
    @alec_almartson ปีที่แล้ว +3

    It sounds very interesting to have a game implemented with DOTS (ECS) in UNREAL ENGINE 5.2... how Performant can it get? 😮

  • @AhmadAli-kv2ho
    @AhmadAli-kv2ho 4 หลายเดือนก่อน

    Is c# supported?

    • @NullenSilic
      @NullenSilic 22 วันที่ผ่านมา +1

      yes! there are two bindings for c#

  • @DylanMatthewTurner
    @DylanMatthewTurner ปีที่แล้ว +2

    Wow they made Bevy for Rust--

  • @perelmanych
    @perelmanych ปีที่แล้ว

    I looked at Tower Defense example and it uses only flecs. Does flecs also have some basic rendering capabilities?

    • @leonss2356
      @leonss2356 ปีที่แล้ว +6

      no, I guess they just implemented a simple webgl renderer

    • @sasichkamega
      @sasichkamega 11 หลายเดือนก่อน +3

      Tower defence uses sokol render

    • @sweettea-hv1ls
      @sweettea-hv1ls 10 หลายเดือนก่อน +2

      Isn't it supposed to be engine agnostic?

  • @naranyala_dev
    @naranyala_dev 3 หลายเดือนก่อน

    there's new version of it

  • @2dapoint424
    @2dapoint424 ปีที่แล้ว +1

    So who all using FLECS?

    • @AloanMoreira1
      @AloanMoreira1 11 หลายเดือนก่อน +1

      seems Hytale is using it

  • @AZGladiator
    @AZGladiator ปีที่แล้ว

    And… deprecated.