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

Remove FrameCount in favor of Bevy counterpart #38

Merged
merged 2 commits into from
Aug 22, 2024

Conversation

snendev
Copy link
Collaborator

@snendev snendev commented Aug 22, 2024

Issues

Fixes #29 - Use built-in frame count

Changes

  • Replaces FrameCount with bevy counterpart in all places
  • Updates system scheduling constraints based on new FrameCount behavior -- this crate's FrameCount was updated in First rather than Last
  • Update tests to account for changes in behavior due to system scheduling differences

Notes

Previous FrameCount implementation uses saturating_ add/sub operations, but based on the documentation for FrameCount, it seems that wrapping_ would be more appropriate. I changed any + operators to use wrapping_ functions to be specific for now.

Also, let me know if I have removed any intended effects of the playback tests. I tried to reflect the original intent to the best of my ability.

Copy link
Contributor

@alice-i-cecile alice-i-cecile left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM once the CHANGELOG is updated :)

@snendev
Copy link
Collaborator Author

snendev commented Aug 22, 2024

@alice-i-cecile I don't see a CHANGELOG.md in this project. Would you like me to start one, or should I draft my notes in RELEASES.md for a future release?

@snendev
Copy link
Collaborator Author

snendev commented Aug 22, 2024

Also, thanks for jumping in to help out! Sorry for the random burst of noise from my end!

@alice-i-cecile
Copy link
Contributor

Ah sorry, I meant RELEASES.md! And no worries at all; it's very welcome.

@snendev
Copy link
Collaborator Author

snendev commented Aug 22, 2024

OK -- I added a section for v0.6 and included release notes for this PR and #37 since I didn't follow suit there

@alice-i-cecile
Copy link
Contributor

Awesome. Ping me on Discord when you think that we're ready for the release of 0.6?

@alice-i-cecile alice-i-cecile merged commit ec76962 into Leafwing-Studios:main Aug 22, 2024
4 checks passed
@snendev snendev deleted the frame_count branch August 23, 2024 00:03
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

Successfully merging this pull request may close these issues.

Use built-in frame count
2 participants