patanext-project / patanext

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Convert some resource-type component to GH Entities

guerro323 opened this issue · comments

Some components take a lot of resources (especially component with string values).
image

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*)

This optimization isn't needed anymore; CharBuffer* isn't used in component except for sending/receiving data over the network