From the documentation, the following fields of Color
are serialized:
int value
float[] frgbvalue
float[] fvalue
float falpha
ColorSpace cs
ColorSpace
has the following serialized fields:
int type
int numComponents
frgbValue
and fvalue
contain 3 elements, so the total size is 40 bytes. Just sending RGB would be 12 bytes. I don't think that's gonna solve your lag.