osci-render/Source/lua
James H Ball 320fab7f09 Refactor effect animation to block-based processing for performance
- Replace per-sample animateValues() with block-based processing
- Process each parameter as a complete block instead of sample-by-sample
- Move LFO type and sidechain checks outside sample loops (reduces branching)
- Remove unnecessary per-sample caching (phaseInc, cachedSmoothingWeight,
  lastLfoRate, lfoStartNorm, lfoEndNorm, cachedLfoMinBound, etc.)
- Keep only essential state: phase (LFO) and rngState (noise)
- Simplify prepareToPlay() - only stores sample rate
- Remove nextPhase() helper function (inlined into animateValues)
- Replace jassert in SimpleEffect with fallback to static parameter values
- Remove OSCI_UNINITIALIZED_F sentinel (no longer needed)

This refactor significantly reduces CPU overhead by eliminating redundant
per-sample branching and cache checks, while maintaining exact same behavior.
2025-12-13 16:31:11 +00:00
..
LuaParser.cpp Merge pull request #306 from DJLevel3/lua-utils 2025-08-30 14:13:41 +01:00
LuaParser.h Refactor effect animation to block-based processing for performance 2025-12-13 16:31:11 +00:00