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

AbilityPlugin cannot be run in the FixedUpdate schedule #36

Open
alice-i-cecile opened this issue Aug 29, 2023 · 0 comments
Open

AbilityPlugin cannot be run in the FixedUpdate schedule #36

alice-i-cecile opened this issue Aug 29, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@alice-i-cecile
Copy link
Contributor

What problem does this solve?

I want all of my game logic, including cooldown management, to occur in the FixedUpdate schedule to ensure framerate independence.

What solution would you like?

When constructing AbilityPlugin, pass in an optional ScheduleLabel.

If this is FixedUpdate, everything works perfectly.

[Optional] How could this be implemented?

Once (🥺) bevyengine/bevy#8964 is merged, this will be trivial: just use the same Time resource in both places.

Until then, we could implement this manually by making two copies of each of our systems.

[Optional] What alternatives have you considered?

Users can work around this currently by not adding the plugin, or any of the premade systems, and instead copy-pasting and modifying the existing systems.

Note that running your game logic in FixedUpdate for an input-sensitive game is questionable in the first place currently, due to bevyengine/bevy#7691

@alice-i-cecile alice-i-cecile added the enhancement New feature or request label Aug 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant