(2017-06-15, 14:02)Philippe Hurbain Wrote: Well... progress bar was good to know that something was happening. Of course if the new undo/redo is extremely fast progress bar becomes useless
Undo/redo is now as fast as a manual action. Take a look at this simple example:
Code:
0 BFC CERTIFY CCW
1 16 0 0 0 -1 0 0 0 1 0 0 0 -1 arm1.dat
1 16 0 0 0 1 0 0 0 1 0 0 0 1 arm2.dat
Code:
0 BFC CERTIFY CCW
1 4 0 0 0 -1 0 0 0 1 0 0 0 -1 arm1.dat
1 16 0 0 0 1 0 0 0 1 0 0 0 1 arm2.dat
If I change the colour of arm1.dat to 4 and I trigger an undo afterwards, the old implementation will parse the whole file (BFC, arm1.dat and arm2.dat).
The new implementaion will only parse this line:
Code:
1 16 0 0 0 -1 0 0 0 1 0 0 0 -1 arm1.dat
This example file has only three lines, but the performance gain is huge for files with 1000+ lines.