Nodes-like interpolating object without graphical part ?
I am looking for an object to replace nodes because I want the interpolation but without the graphical representation so to spare CPU as much as possible.
Does such an object exist ?
Just put nodes in a subpatcher, it won’t redraw. Also, make sure you have 5.1.7 or higher, there were some redrawing speed up when you are in slider mode.
----------begin_max5_patcher---------- 1565.3oc2ZssbihCD8YmuBJdNqKcWn8s86XpsRgMJIZFL3BTxjrSM+6qt.XH AjIYXXb4bgKRfzoOp6Vsn0OtYS7txWj0wQ+czWh1r4G2rYiqHaAaZteS7gzW 1mmV6dr3B42K2803a8UokuncEeLpnLyzRMkeLUu+QUwC2UI2q8MOAtEbaj.a OhPL2IvVPz+17J2WVnqU+mz9zPjoZewEOcPUjK0tdGdpvxmzskhaJ0Wj90iR eOFGeay+cchJygViD7WDQbudtH8f6sh+mJUZ9.wPV0PGM7g4ET4xmkU0pxhd nZS7IgEXEO2AFwchjzSVMb7C4k6+lzgFPagYx6meKTdTVL1S2dX3SpJNVIqk E5TcCn62qoOkquab9eX82mtWN4KOJEtI9gJUVYgEDCdSawsc2WhfTKrsGOga 2STjdbjWVWVluKs5YUsZWtbvXfQ6MsPcHUK0JOdPft2Sc3XkpPOnsjEol13w 58Uk44CZJeMOORMYxmU6keWkoez0VmXqA1S8zYFXWMn72Ze0yLxU6KGyaXc6 vbBQPoI1QXJkSQH6UbHKARbWwDBnqLDNQfcOGhfwLr8JAfCbEAEDlv0FXQBB 2Q4NQSUa5vW+VQ4NG40qJaYsCYnSx7D16TmlHD.5avaOMn6Fn0A2x.leX8pe Ly+ocA3p40ADFGfoNtABXPA0dUhkDYdtgyS7rDBhvBOaZ4N6U3SbMIgwcbH0 9xrAhv9zhrWMGbcYReHZFJMvbm2AhnWMm2S0a8VA6qRTbxvwHWDNl3jKHgwv b+nOj.YdotUKwv8nDmLfoB.xUqWhwPABP77goBiz01U+7laZu31Oo9razKdN pJd2bHZ6wATw.8.vj5Avfj7TjKNoO.2Wd3fz6jHNdAYBOdlEUfSXykKl1l.L gvJtXDVHE+6VZ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Yf0jUk8nC5swQjX0QD5LHxF9xJBIqI2YG2fjOlR1uHlPyFSq nonXFicX75ioyogutCcDwbF5PqJlfywM5a.9GCSla94M+Ojm6mNJ -----------end_max5_patcher-----------
Does this insertion in a subpatcher prevent *any* graphical objet to redraw ?
+1 to know the answer to that… definitely have read about avoiding redraw objects (using [i] instead of [number] for example). Also hide/show–with a bunch of multisliders hiding/showing I saw a performance improvement, but didn’t do any real benchmarking.
Then of course there’s the "performance decrease" that you SEE in an object, versus the REAL performance decrease (actual slowing of the output lists from multislider, for example…dropped values…etc.)
I would really really like a reference somewhere of the performance hits that the various objects have, graphical or not. So I could weigh options like effects etc. I realize that a given object could be very "light" or very "heavy" depending on how it’s used (and how big its data set is), but some overall guidelines would be great to keep in mind while designing.
Even a simple, generalized three-column table of objects rated light, medium, heavy would be a great start.
When an object is hidden or a in a hidden patcher, its paint method (that the part which "draws to the screen") doesn’t get called at all. Of course if you wanna be picky, there’s still an overhead since there’s some logic to know if the object is visible or not which has to take place but I would be really surprised if the overall performances would suffer from that.
Great to know, thanks Emmanuel!
One other thought, how about UI objects that are in the patch or subpatcher, and not hidden, but the window is scrolled so they’re not actually on the screen? Are they still painted, or does Max know they’re not visible—using a patching_rect versus window-scroll position, or something?
Wondering if in this case, the paint method is called, but it takes up less resources as there’s no visible "target" that actually changes things on the screen.
I know, picky… just curious :)
pattrstorage with recallmulti ?
@seejayjames it’s the same, it’s only redraw if it’s visible on screen.