Convert some resource-type component to GH Entities
guerro323 opened this issue · comments
Guerro323 commented
Some components take a lot of resources (especially component with string values).
The best would be to convert these component to entity resources.
eg: UnitDefinedAbilities is for now a buffer with a CharBuffer128 field, which make thing really big for only 15 units! (as seen on the screenshot).
The solution would be to replace this field with a DefaultEcs.Entity
field, which will contains the string. This will reduce transport size by a lot.
(this should actually be done for 95% of components that contains a CharBuffer*)
Guerro323 commented
This optimization isn't needed anymore; CharBuffer* isn't used in component except for sending/receiving data over the network