You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
auto& column = getSmallestSizeColumn<Components...>();
for (auto& component in column)
{
auto entity = getEntity(component)
if (entity.Contains<Components...>()) { 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.
The text was updated successfully, but these errors were encountered:
Is optimization like this possible?
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.
The text was updated successfully, but these errors were encountered: