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

Interpreter improvements (wip) #269

Draft
wants to merge 9 commits into
base: develop
Choose a base branch
from
Draft

Interpreter improvements (wip) #269

wants to merge 9 commits into from

Conversation

remcoder
Copy link
Member

@remcoder remcoder commented Dec 29, 2024

This attempted to address #257 but I couldn't pinpoint those errors.

This PR mainly addresses 'non-moving movement commands' and zero-length path. Skipping these is a non trivial amount of cycles and data so it is decent a performance improvement.

Non-moving move commands, for exameple: G0 F2000, specify no value for X,Y an Z. Therefore they are not rendered as a line anyway. Skipping these results in no visible difference. Yet these account for about 30% of the input.

TODO:

  • fix tests

Copy link

github-actions bot commented Dec 29, 2024

Visit the preview URL for this PR (updated for commit 04479a8):

https://gcode-preview--pr269-fix-webggl-errors-556n7yvx.web.app

(expires Wed, 26 Feb 2025 21:23:42 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 59bd114ae4847b32c2bba0b68620b9069a3e3531

@remcoder remcoder mentioned this pull request Jan 14, 2025
2 tasks
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.

1 participant