Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build BurstableAtomicIDProviderSystem #265

Open
jkeon opened this issue Jun 6, 2023 · 1 comment
Open

Build BurstableAtomicIDProviderSystem #265

jkeon opened this issue Jun 6, 2023 · 1 comment

Comments

@jkeon
Copy link
Member

jkeon commented Jun 6, 2023

See: https://github.com/decline-cookies/anvil-unity-dots/pull/258/files#r1220141780

Have a system that creates the IDProviders for you and stores a reference to them. Every so often (configurable, could be frame or X seconds) it will check them all against their SupplyWarningThreshold and emit an event for the main thread application to listen to and respond to similar to IDProvider

@jkeon jkeon mentioned this issue Jun 6, 2023
2 tasks
@mbaker3
Copy link
Member

mbaker3 commented Jun 6, 2023

Ah yea, I was thinking the BurstableAtomicIDProvider would register itself with the system but this makes more sense because you need a World reference anyway and this better matches the pattern you follow for ECBs.

The system can probably just check every frame. It's not going to be expensive and there aren't going to be tens of thousands of ID providers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants