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

Replace NSTimer with CADisplayLink #2

Merged

Conversation

Patrick-Kladek
Copy link
Owner

An NSTimer is not the optimal way to draw stuff to the screen that needs to refresh every frame. CADisplayLink is way better. It always fires immediately prior to the screen being redrawn.

@Patrick-Kladek Patrick-Kladek marked this pull request as ready for review May 6, 2022 20:10
@Patrick-Kladek Patrick-Kladek merged commit 783d84b into Patrick-Kladek:master May 6, 2022
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.

2 participants