Are memory requirements O(entities * component types)?
まだ誰も着手していません。
評価
調査の方向性
EntityManager::assign と、issue に示されている placement-new の呼び出しから始め、続いてコンポーネントプールの実装と get(id.index()) を調査します。すべてのエンティティに対してストレージが確保されるのか、それとも割り当てられたコンポーネントに対してのみ確保されるのかを判断します。メモリの挙動に関する疑問を解決し、その調査から必要な明確化または変更を特定できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Reading the code, it seems to me like components share the index of their Entity, e.g. the Position Component for Entity #1,000,000 will the 1,000,000th Position Component in the Position Component Pool.
Am I understanding this correctly? If I have 1,000,000 entities, and there is one instance of the Foobar component, but it happens to be on entity 999,999, then we'll have to eat the memory of unused 999,998 unused components in the Foobar pool?
Am I reading the code correctly? If I'm wrong, can you help me understand how?
I'm mainly looking at EntityManager::assign to make this determination, specifically in the placement new:
::new(pool->get(id.index())) C(std::forward<Args>(args) ...);
where pool is the component pool, and id is the entity id.
- 主要言語
- C++
- スター
- 2.3k
- フォーク
- 300
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
alecthomas/entityx のほかの issue
-
Test Failsオープン
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
alecthomas/entityx#256 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 32/100
alecthomas/entityx#246 · コメント 1 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
alecthomas/entityx#238 · コメント 11 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
alecthomas/entityx#237 · コメント 1 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
alecthomas/entityx#227 · コメント 2 件 ·
alecthomas/entityx の issue をすべて見る
似ている issue
-
agent:Windows bug parity performance pri:medium sev:low tooling windows
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
ai_p2
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
ClickHouse/ClickHouse#132519 ·
メンテナーはふだん 1 日以内に返信
-
patch_advisor_json_integration fails when the build tree is reached through a symbolic link対応中かも @DerKarussellbremser が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
boykopovar/AnyPS5#22581 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
BlueQuartzSoftware/simplnx#1987 ·
メンテナーはふだん 6 日以内に返信