alecthomas / alecthomas/entityx

Further optimization of PackedColumnStorage when get entities_with_components?

Đang mở
#193 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
C++
Star
2.3k
Fork
301
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.