mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-07 23:17:35 -06:00
ENH: CLI: add time estimation for non-cache slicing
JIRA: XXXX Change-Id: Ifed2d70e8d6355087694df96e413cdbcf792d6d9
This commit is contained in:
parent
04552e4c9b
commit
165bb96e35
6 changed files with 29 additions and 8 deletions
|
@ -422,7 +422,7 @@ public:
|
|||
// After calling the apply() function, call set_task() to limit the task to be processed by process().
|
||||
virtual void set_task(const TaskParams ¶ms) {}
|
||||
// Perform the calculation. This is the only method that is to be called at a worker thread.
|
||||
virtual void process(bool use_cache = false) = 0;
|
||||
virtual void process(long long *time_cost_with_cache = nullptr, bool use_cache = false) = 0;
|
||||
virtual int export_cached_data(const std::string& dir_path, bool with_space=false) { return 0;}
|
||||
virtual int load_cached_data(const std::string& directory) { return 0;}
|
||||
// Clean up after process() finished, either with success, error or if canceled.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue