decline-cookies / anvil-unity-dots

Unity DOTS and ECS specific additions and extensions to Anvil
MIT License
4 stars 1 forks source link

Atomic Burstable ID Provider #258

Closed jkeon closed 1 year ago

jkeon commented 1 year ago

Adding in an IDProvider but that is atomic and burstable allowing for generating ID's in Bursted Jobs and in parallel.

What is the current behaviour?

IDProvider is a class and cannot be used in jobs.

What is the new behaviour?

IDProviderAtomicBurstable is a struct that is Burst Safe and allows the ID to be generated in an atomic fashion so it is also thread safe.

What issues does this resolve?

What PRs does this depend on?

Does this introduce a breaking change?