alecthomas / alecthomas/entityx
Further optimization of PackedColumnStorage when get entities_with_components?
Aperta
- Lingua principale
- C++
- Stelle
- 2.3k
- Fork
- 301
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.