[LDPartEditor] 0.8.31 Beta Released (!LPE VERTEX / Usability / bugfix)


RE: Faster undo/redo (0.8.32)
#18
(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 Wink

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.
Reply
« Next Oldest | Next Newest »



Messages In This Thread
Faster undo/redo (0.8.32) - by Nils Schmidt - 2017-06-15, 11:58
RE: Faster undo/redo (0.8.32) - by Nils Schmidt - 2017-06-15, 20:18

Forum Jump:


Users browsing this thread: 8 Guest(s)