I’ve run into a memory consumption issue with the layer trait and how it’s implemented per game piece. In this case it is several decks of cards each requiring multiple layer traits. My first attempt was using a layer trait with 19 layers applied across 962 card modification slots. The layer traits are identical while the only property modified is the offset. Thankfully I noticed the memory consumption issue with 1/4 of the layer traits applied.
The prototype is an ideal location to address memory consumption with layer traits however the offset is static. What I think would best address the problem is to create a custom Java class that would allow the dynamic property trait to adjust a prototype layer trait offset.
If anyone has other suggestions or input please feel free to reply. Thank you.