#214 array: move instead of redraw graphics

feature
open
nobody
puredata (375)
5
2008-04-24
2008-04-21
Jakob Leben
No

This is a patch that fixes slow ("sticky") displacing of arrays by moving instead of recreating their graphics.

It also fixes the problem of array name not appearing immediately after its creation as it was necessary now that arrays don't recreate but only move all that belongs to their appearance when displaced.

Discussion

  • Jakob Leben
    Jakob Leben
    2008-04-21

    fixes slow displacing of arrays

     
    Attachments
    • labels: 680705 --> puredata
    • milestone: 445837 --> feature
     
  • Logged In: YES
    user_id=27104
    Originator: NO

    see patches 1943614 and 1943301 for a history of this patch

     
  • Interesting idea - I wonder though if it would be simpler and more maintainable to use some sort of throttling instead. Array moves are definitely ugly now.

     
  • array moves should really use the tcl 'move' command. It will greatly speed things up, IMHO. Right now, changes in arrays can generate up to 1 megabyte of Tcl code per second for the GUI to execute. Using a move command, we should be able to get that down to a much smaller amount, I think three or four orders of magnitude is feasible.

    That said, I have not tested this patch.

     


Anonymous


Cancel   Add attachments