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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

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.
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