/tdmcp-skills:td-performance-checkfrom TDMCP Skills
Optimizes TouchDesigner performance with selective cooking, GPU/CPU profiling, operator-driven animation, and Python bottleneck avoidance. Use when cooking cost matters or profiling a network.
Ships in TDMCP Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Optimization patterns for TouchDesigner. Core principle: let TD do the work — operators cook in C++, Python is the bottleneck.
TD recognizes common Python patterns and runs them in C++ instead:
op('lfo1')['chan1'], basic math, abs(), math.sin()An optimized reference is essentially free. Unoptimized = full Python interpreter every frame per parameter.
Use CHOPs for per-frame value changes, not Python scripts:
lfoCHOP — oscillationspeedCHOP — incremental values (accumulates input)timerCHOP — timed sequences, state machinecountCHOP — event-driven countinglookupCHOP — range mapping via lookup tableWire CHOP outputs to parameters via expressions: op('null_lfo')['chan1']
When Python must react to values, filter the signal first:
lfoCHOP → limitCHOP (quantize) → nullCHOP (cooktype=selective) → chopexecuteDAT
The null only passes data when values change. Python fires on transitions, not every frame.
Prefer expressions over exports — same performance, but parameters stay editable and visible in UI.
Never absTime.seconds for installations — floats lose precision, eventually overflow.
Solution: cyclical operators. lfoCHOP with sin+cos channels driving noise T/W parameters:
sin, cos (phase expr: me.chanIndex * 0.25)tz/tw (or t4d for POPs) on noise operatorsUse get_cook_performance to identify bottlenecks:
top_n limits results (default 20)cookTime, cpuCookTime, gpuCookTimesort options: cook (default), cpu, gpu, memory, cooksinclude_memory=true for cpuMemory, gpuMemory, totalCooksUse inspect_values to check runtime state. TOPs: sample_grid=8 for stats + grid (prefer over view_operator).
Operators cook when:
op.cook(force=True)viewer=True is a UI hint, not a cook guarantee. Ops inside unopened COMPs won't cook.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
touchdesigner, performance-optimization, cooking, profiling, chops
npx claudepluginhub touchdesigner/tdmcpskills --plugin tdmcp-skills19 skills in this plugin
/td-build-planningPlan TouchDesigner builds — scout networks, decide operators, allocate positions, phase work. Use before any multi-operator build./td-chop-familyBuild CHOP chains for audio, LFOs, animation, and data-driven control. Use when creating CHOPs or driving parameters from CHOPs./td-colabCollaborative mode — you're a thinking partner in TouchDesigner, not a builder. Load when you're sliding into auto-building or need to reset the collaborative frame./td-comp-architectureComponent design — baseCOMPs, extensions, custom parameters, parent shortcuts, modularity. Use when creating COMPs or structuring projects./td-dat-familyDAT operations — table data, Python callbacks, parameter execute, CHOP execute. Use when creating or populating any DAT./td-generalCore TouchDesigner conventions and the skill map — workflow phases, naming, paths, tool preferences, universal pitfalls. Load FIRST on any TouchDesigner task, before any other td- skill.Other plugins' skills for the same job