Skip to content

Commit

Permalink
Fixed comments
Browse files Browse the repository at this point in the history
Updated CPU reduction comments
  • Loading branch information
codygeary authored Mar 6, 2024
1 parent 94d1913 commit 642ee35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/EnvelopeArray.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ struct EnvelopeArray : Module {
dsp::TSchmittTrigger<float_4> trigger_4[6][4];

int processSkipCounter = 0;
int processSkipRate = 10; // Update the envelope every 2 process cycles to save CPU
int processSkipRate = 10; // Update the envelope every 10 process cycles to save CPU


// Serialization method to save module state
Expand Down
2 changes: 1 addition & 1 deletion src/ImpulseController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ struct ImpulseController : Module {
}

void process(const ProcessArgs& args) override {
const float baseSampleTime = 10.0f / 44100.0f; // Base sample time for 44.1 kHz //cut the CPU by 50%
const float baseSampleTime = 10.0f / 44100.0f; // Base sample time for 44.1 kHz //cut the CPU by 90%

// Accumulate elapsed time
accumulatedTime += args.sampleTime;
Expand Down

0 comments on commit 642ee35

Please sign in to comment.