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

Fix Surface::line infinite loops #864

Merged
merged 1 commit into from
Oct 30, 2024
Merged

Fix Surface::line infinite loops #864

merged 1 commit into from
Oct 30, 2024

Conversation

Daft-Freak
Copy link
Collaborator

I had it hang again, so fixed it.

Instead of checking if we've reached the target, count how many pixels we should draw. I've verified that this is the same number of iterations (except not infinite sometimes) and is possibly a little faster (it certainly generates less code).

Fixes #504 ?

Instead of checking if we've reached the target, count how many pixels we should draw.
@Daft-Freak Daft-Freak merged commit 6f23752 into master Oct 30, 2024
18 checks passed
@Daft-Freak Daft-Freak deleted the patch-line-finite branch October 30, 2024 12:07
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.

Surface::line algorithm is.. jank?
1 participant