alecthomas / alecthomas/entityx

Further optimization of PackedColumnStorage when get entities_with_components?

オープン
#193 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
C++
スター
2.3k
フォーク
301
PR マージ指標
30日以内にマージされた PR はありません

説明

Is optimization like this possible?
```c++
auto& column = getSmallestSizeColumn();
for (auto& component in column)
{
auto entity = getEntity(component)
if (entity.Contains()) { f(entity, cs...); }
}
```
When finding entities_with_components, iterate over the smallest size column to find entities instead of iterate all entities should get performance benefits when some components rarely exist.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。