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

Experimental new version of the window which provides a fixed update. #1944

Merged

Conversation

DragonMoffon
Copy link
Collaborator

There has been discussion about Arcade having its own clock class, which can be used to track time within an application. The Pyglet clock provides a lot of functionality that isn't needed in this application. This conversation then led to providing fixed updates for proper physics. This PR hopes to provide an experimental window people can test with for a proper release in a later 3.x release.

In this PR there are three objects:
A clock which is used to track time.
A timer that is a "set and forget" callback which can be given to clocks and reused.
An updated window which has both a standard update clock and a fixed update clock. It also provides a new on_fixed_update event.

The fixed update implementation is created, but classes to access the clocks and other variables is still necessary.
@DragonMoffon DragonMoffon marked this pull request as ready for review March 3, 2024 07:59
@Cleptomania Cleptomania merged commit 55c88d2 into pythonarcade:development Mar 3, 2024
7 checks passed
@DragonMoffon DragonMoffon deleted the experimental_timing_class branch June 10, 2024 10:32
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.

3 participants