rrbox / ecs-swift

Entity Component System for swift
MIT License
3 stars 0 forks source link

World.update の処理の順番 : entity 構造の反映 #81

Open rrbox opened 2 months ago

rrbox commented 2 months ago

なぜ

  1. applyUpdatedEntityQueue : 前フレームで構造が変化した entity を system に反映
  2. applyEnityTransactions
  3. applySpawnedEntityQueue
  4. applyCommands : command を反映

の順番・構成なのか?

rrbox commented 2 months ago

4. Apply commands 処理に、既存 entity の構造変化が含まれている

applyEnityTransactions にまとめることができないか?