ImmutableOctet / glare

Glare: Open Source Game Engine written in Modern C++
MIT License
0 stars 0 forks source link

Look into ways of optimizing or caching meta-type descriptions #45

Open ImmutableOctet opened 1 year ago

ImmutableOctet commented 1 year ago

Currently only factory objects are cached. Because entity descriptors (found in factories) are processed from archetypes, they may share data.

Note: This may be a hard optimization to achieve, since component redefinition and modification can happen at any point during the construction phase of a factory / entity descriptor.

ImmutableOctet commented 1 year ago

This may make sense as a lower level caching mechanism for JSON files/objects. JSON caching doesn't cover the processing overhead on archetype reload, though.

Factory caching + JSON caching would cover the bulk of this problem space from a performance perspective. It doesn't resolve the memory footprint issue, since the JSON portion would likely use more memory anyway.