mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 09:17:52 -06:00
Faster remaining times export
This commit is contained in:
parent
7d61b2076f
commit
dc25df7b32
3 changed files with 98 additions and 84 deletions
|
@ -148,7 +148,6 @@ namespace Slic3r {
|
|||
Trapezoid trapezoid;
|
||||
//#################################################################################################################
|
||||
float elapsed_time;
|
||||
unsigned int g1_line_id;
|
||||
//#################################################################################################################
|
||||
|
||||
bool st_synchronized;
|
||||
|
@ -207,6 +206,8 @@ namespace Slic3r {
|
|||
typedef std::map<Block::EMoveType, MoveStats> MovesStatsMap;
|
||||
#endif // ENABLE_MOVE_STATS
|
||||
|
||||
typedef std::map<unsigned int, unsigned int> G1LineIdToBlockIdMap;
|
||||
|
||||
private:
|
||||
EMode _mode;
|
||||
GCodeReader _parser;
|
||||
|
@ -214,6 +215,8 @@ namespace Slic3r {
|
|||
Feedrates _curr;
|
||||
Feedrates _prev;
|
||||
BlocksList _blocks;
|
||||
// Map between g1 line id and blocks id, used to speed up export of remaining times
|
||||
G1LineIdToBlockIdMap _g1_line_ids;
|
||||
float _time; // s
|
||||
|
||||
#if ENABLE_MOVE_STATS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue