# FX in practice tutorial: no CPU difference

**URL:** <https://in-thread.sonic-pi.net/t/fx-in-practice-tutorial-no-cpu-difference/5051>\
**Category:** Support, Help & Resources\
**Created:** [January 27, 2021, 3:11am UTC](https://in-thread.sonic-pi.net/t/fx-in-practice-tutorial-no-cpu-difference/5051 "2021-01-27T03:11:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![blipson](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/blipson/32/1772_2.png) [@blipson](https://in-thread.sonic-pi.net/u/blipson)\
**Post date:** [January 27, 2021, 3:11am UTC](https://in-thread.sonic-pi.net/t/fx-in-practice-tutorial-no-cpu-difference/5051/1 "2021-01-27T03:11:34Z")

</div>

I’m working through the tutorial on my MacBook Pro 16" 32GB. Section 6.2 “FX in practice” considers optimizing FX CPU usage using these three configs:

```
loop do
  with_fx :reverb do
    play 60, release: 0.1
    sleep 0.125
  end
end

with_fx :reverb do
  loop do
    play 60, release: 0.1
    sleep 0.125
  end
end

loop do
  with_fx :reverb do
    16.times do
      play 60, release: 0.1
      sleep 0.125
    end
  end
end

```

According to my process monitor, each config gives me exactly the same CPU load. Why? Is Sonic Pi smart enough that it now performs the same optimization under the hood to make up for user failure?

---

<div class="post-metadata">

**Author:** ![ethancrawford](https://avatars.discourse-cdn.com/v4/letter/e/a88e4f/32.png) [@ethancrawford](https://in-thread.sonic-pi.net/u/ethancrawford)\
**Post date:** [January 27, 2021, 5:11am UTC](https://in-thread.sonic-pi.net/t/fx-in-practice-tutorial-no-cpu-difference/5051/2 "2021-01-27T05:11:06Z")

</div>

The difference is more noticeable if you increase the BPM. Try the above examples with `use_bpm 120` at the top of the buffer.

---

<div class="post-metadata">

**Author:** ![ethancrawford](https://avatars.discourse-cdn.com/v4/letter/e/a88e4f/32.png) [@ethancrawford](https://in-thread.sonic-pi.net/u/ethancrawford)\
**Post date:** [January 27, 2021, 5:22am UTC](https://in-thread.sonic-pi.net/t/fx-in-practice-tutorial-no-cpu-difference/5051/3 "2021-01-27T05:22:53Z")

</div>

See this comment by Sam which explains a related question:

> [@Low CPU usage - 7820X 64gb ram ASIO support](https://in-thread.sonic-pi.net/t/low-cpu-usage-7820x-64gb-ram-asio-support/4918/4):
>
> This is an excellent question and one that’s wroth answering fully. The problem is that your CPU capacity actually means a few things thrown together. Firstly, it’s going to be the aggregated sum of all your CPUs. Sonic Pi has a number of different components all which can run independently on different CPUs. However the sound synthesiser which generates the audio can only run on one of them. Therefore, if you have 8 CPUs offering 16 logical threads, then the max that the synthesis part of Son…

The issue is related to fx like reverb etc being more expensive for scsynth (the _single processor_ version of the SuperCollider sound engine that Sonic Pi uses under the hood) to run. So the more reverb fx Sonic Pi has to process in a short amount of time, the less chance it will be able to keep up with all the instructions it’s given.
