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

Plugin interoperability #4

Open
Bluefinger opened this issue Apr 15, 2023 · 0 comments
Open

Plugin interoperability #4

Bluefinger opened this issue Apr 15, 2023 · 0 comments
Labels
documentation Improvements or additions to documentation help wanted Extra attention is needed

Comments

@Bluefinger
Copy link
Owner

RNG sources are not just needed at the game level, but also the plugin/crate level. How plugins should manage accessing RNG sources and creating them is an important, given these could interact badly or introduce indeterminism into a game when the developer is trying to achieve determinism in all or any area of importance.

What should be established is patterns or best practices for plugins making use of bevy_rand as their RNG source to do so in a way that can be:

  1. Seeding be set/controlled at the game/app level.
  2. Fallbacks to using system/thread local entropy or internal seeding within the plugin.
  3. Ensure that plugin sources will not interfere with each other.
@Bluefinger Bluefinger added documentation Improvements or additions to documentation help wanted Extra attention is needed labels Apr 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant