Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Please read the docs at of clock.py (https://github.com/matham/kivy/blob/4e893a4f40d279d58a376ca4f2fe88b45e2ded37/kivy/clock.py#L221) added by this PR to understand what it does.
A quick summary from there is:
The kivy clock type to use can be set with the
kivy_clockoption the:mod:
~kivy.config. IfKIVY_CLOCKis present in the environment itoverwrites the config selection. Its possible values are as follows:
kivy_clockisdefault, the normal clock, :class:ClockBase,which limits callbacks to the maxfps quantization - is used.
kivy_clockisinterrupt, a interruptible clock,:class:
ClockBaseInterrupt, which doesn't limit any callbacks to themaxfps - is used. Callbacks will be executed at any time.
kivy_clockisfree_all, a interruptible clock,:class:
ClockBaseFreeInterruptAll, which doesn't limit any callbacks to themaxfps in the presence of free events, but in their absence it limits events
to the fps quantization interval - is used.
kivy_clockisfree_only, a interruptible clock,:class:
ClockBaseFreeInterruptAll, which treats free and normal eventsindependently; normal events are fps limited while free events are not - is
used.
Also fixes #4417.