Quick answer: Godot 4 C# Tween.TweenMethod with a delegate allocating each call? Delegate creation per-step; cache the delegate or use a struct.

100 tweens running; profiler shows 200KB/s allocation from tween delegates.

Cache the delegate

private static readonly Action<float> Cached = SetValue;

One allocation; reused.

Or use Lambda capture

Capture stable state; lambda allocates once.

Audit allocations

Per-tween-step allocations. Each is a candidate.

“Delegates allocate. Caching avoids.”

If your tweens are hot, the delegate cache is the cure. Standard C# pattern.

Related reading