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

Improved effiency when adding gcode #42

Open
woutgg opened this issue Mar 11, 2016 · 0 comments
Open

Improved effiency when adding gcode #42

woutgg opened this issue Mar 11, 2016 · 0 comments

Comments

@woutgg
Copy link
Contributor

woutgg commented Mar 11, 2016

When adding many lines of gcode at once while a print is in progress, the printer stutters noticeably. For instance when sending 2000 lines, this takes about 220ms to process. With the current client behaviour of sending 500 lines each time, the printer does not stutter.

500 lines take about 55ms to process, so processing time seems to depend linearly on the amount of lines (about 1 msec per 9 lines).

We could have a look into this to find any bottlenecks and possibly make improvements there.

Creating a separate thread for printing to make it immune to other 'chores' would of course be an option, but might also add unnecessary complexity and risk of race condition bugs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant