Comments (4)
Thanks ! @dalegaard : Slow is relative I guess.. I have 2-3 hour prints estimating in 5 seconds on my RasPi 4 while printing!
from klipper_estimator.
I'm not familiar with rust, but my guess here is that one approach that would scale reasonably well would be to analyze a "layer at a time" in-memory in cases of not having enough to take the whole GCODE file all at once, which is, I suspect, the issue from browsing the code briefly. I'm sure there's other ways to chunk it up as well, but I think in most cases a single layer should fit in the memory of most machines you'd want to run this on, even the relatively memory limited smaller Raspis.
from klipper_estimator.
Estimation mode indeed relies on loading the entire file, so it can't reasonably run on a Pi currently. Post processing mode works fine though, as it runs in constant memory.
I don't really see the use case for estimate
on weak machines as it's mainly a tool for optimization. Change something, run estimate, see how time changed, repeat. Since the pi is so slow it'll take a long time for each run, and so isn't particular useful.
For large files on Pi, a simple work around is enabling a swap file.
At some point estimation mode could definitely be improved to aggregate incrementally, the dataset in memory should still be reasonably small.
Best regards,
Lasse
from klipper_estimator.
I just released a v1.1.0 where estimate
now runs in constant space. This should allow it to work on the Raspberry Pi as well, but of course it'll still probably be a bit slow :-)
Best regards,
Lasse
from klipper_estimator.
Related Issues (20)
- Failed to run klipper_estimator HOT 1
- FR: Rename function HOT 1
- Use config.js if moonraker is not online HOT 1
- Display Popup Window with Estimate after Slicing/Export / Possible bug in layer time output HOT 1
- Increasing acceleration beyond machine's max acceleration still decreases the estimate of time taken to print HOT 2
- Issue with Release Version of Estimator Hanging when Piped in Command Line HOT 1
- Installation HOT 3
- Windows exe doesnt start HOT 2
- Error on 'M73 P0.000 R46': unable to parse 0.000 HOT 5
- max_accel_to_decel has been removed in newest klipper versions HOT 3
- Microsoft Defender says: Trojan:Win32/Wacatac.B!ml HOT 2
- Wrong max_accel_to_decel calculation in v3.7.x HOT 2
- [Feature request] Add support for object exclusions
- Won't open on windows 11 HOT 1
- incorrect estimate result HOT 1
- Estimated print time off by a lot/seemingly random amounts HOT 9
- override minimum_cruise_ratio some times HOT 2
- Add ability to pass total print time in seconds via gcode placeholder
- post-process doesn't seem to work. HOT 6
- How to EXTRACT dump-moves informations into an external file HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from klipper_estimator.