decline-cookies / anvil-unity-dots

Unity DOTS and ECS specific additions and extensions to Anvil

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ThreadPersistentData - Change Name

mbaker3 opened this issue · comments

The naming of ThreadPersistentData is a misleading description of its intended use and behaviour when compared with EntityPersistentData.

ThreadPersistentData is really more of a pooling mechanism for a heavy data type to allow jobs to avoid allocating instances on each iteration of a job, frame and across multiple jobs that use the same type.

The ThreadPersistentDataInstace is:

  • Globally shared between all Worlds
  • Does not get evaluated during World migration

Put some thought into the name but some ideas to riff on are:

  • Instance provider
  • Pooled data
  • Thread safety

ParallelPooledDataProvider?