79595982

Date: 2025-04-28 07:46:43
Score: 1.5
Natty:
Report link

Generally logging to console takes "a lot" of resources since the process function is executed (depending on your chosen sample rate) every ~2,67ms (48kHz). The render quantum is 128 samples. Then also try not to use set(), instead opt for a for loop. Doesn't make much difference in regular code but the extra bit of overhead from a function call like that might slow things down just enough to lose some samples. I found that at times the process function execution can take longer than the time frame given by the sample rate so that loss of samples occurs.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Rakesh Sharma