I’m using the Python PIL (Pillow) module’s PIL.Image.save() method every few seconds through a timer CHOP’s callback and every time this particular method gets called I see TD’s framerate drop with a noticeable stutter in the playback of all other parts of the project. The file I’m saving to disk is a 400x3000 PNG with alpha that weighs < 200kB. This is running on a pretty speedy 4GHz quad Xeon with SSDs, ample RAM, Quadro graphics cards etc.
I’m sure I’ll find another way around this probably by avoiding saving to disk and keeping everything in memory instead but this got me wondering about how tasks running on the CPU (such as execs) are threaded within TD and how they might affect other tasks running on the GPU and ultimately affect playback.
- Any general thoughts or traps to avoid when making heavier use of Python within TD?
- Is there a “better” way of passing images being generated or modified through Python back into TD tops besides files?