Optimize Tag Components
Byteron opened this issue · 0 comments
Byteron commented
tag components have no data, so it should be possible to not create storages for them at all, just set the bits.
maybe it's bossible with component meta data array that has a IsTag flag like so.
static class ComponentInfo<T>
{
public static readonly bool IsTag = typeof(T).GetFields(BindingFlags.NonPublic | BindingFlags.Public).Length == 0;
}