Ok one wisdom and one further question: 1: one has to delete objects before ‘recreating’ them - I was making a lot, a lot of circles.
2: is there a good practice example of writing for gui somewhere. I think I got a hunch of needed to delete from IEM’s toggle (which has a new and update method) and that opens a can of worm of a full re-write on my side… is there any tutorial out there on writing GUI ? Or commented code? Or good practice? Anyway, I hope this will help someone. I searched ... > On 20 Mar 2024, at 20:00, Pierre Alexandre Tremblay <[email protected]> > wrote: > > Hello > > So I am trying to optimise the drawing of fluid.plotter… I have a dictionary > in TCL land, which I thought would be clever, but it seems to get worse as I > replace points. > > 2 questions for the pros of the pd GUI coding: > > 1. Is it better to keep my database in C and pass it afresh at all draw call > and forget about dictionaries on the tcl side? > > 2. If not, am I right to have noticed some struggle with dict on the tcl side? > > The code in question is here: > > https://github.com/flucoma/flucoma-pd/blob/main/src/fluid.plotter/fluid.plotter.c > > > The method is ‘addpoint’ - and if I enter the same points over and over again > (like in the fluid.stat helpfile) it gets worse and worse and worse… and it > is worse on Windows, then Mac, then less worse on Linux. > > Any help welcome. I know the code is not ideal but I’m fighting on all fronts > to try to keep a reactive GUI to plot and click many objects… > > Thanks! _______________________________________________ [email protected] mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
