# CPU excessive usage for front-end

**URL:** <https://mediasoup.discourse.group/t/cpu-excessive-usage-for-front-end/662>\
**Category:** mediasoup-demo\
**Created:** [March 21, 2020, 4:47pm UTC](https://mediasoup.discourse.group/t/cpu-excessive-usage-for-front-end/662 "2020-03-21T16:47:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AlexanderKozhevin](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/alexanderkozhevin/32/219_2.png) [@AlexanderKozhevin](https://mediasoup.discourse.group/u/AlexanderKozhevin)\
**Post date:** [March 21, 2020, 4:47pm UTC](https://mediasoup.discourse.group/t/cpu-excessive-usage-for-front-end/662/1 "2020-03-21T16:47:31Z")

</div>

When I open the demo CPU on my macbook Air 2019 raise up to 90% for one core.  
Chrome getting crazy.

Is there any straightforward reason for that?

---

<div class="post-metadata">

**Author:** ![jmillan](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/jmillan/32/9_2.png) [@jmillan](https://mediasoup.discourse.group/u/jmillan)\
**Post date:** [March 22, 2020, 8:52am UTC](https://mediasoup.discourse.group/t/cpu-excessive-usage-for-front-end/662/2 "2020-03-22T08:52:40Z")

</div>

Hi, you’ll need to check which process is consuming CPU and investigate a bit. Most probably is Chrome rather than mediasoup.

Depending on the codec you’re using HW encoding may not be taking place in which case CPU is doing the job.

If you add `&forceH264=true` to the demo URL then you’ll force the H264 codec usage which would be HW encoded (not 100% sure if that’s true for macbook air) and you may see CPU usage differences there.

You can use `Activity Monitor` Mac app to see the process and GPU usage…,

There’s no much more we can help here on this regard.
