... | ... | @@ -114,11 +114,22 @@ See [here](https://gitlab.freedesktop.org/pipewire/pipewire/-/wikis/Performance# |
|
|
|
|
|
## Firefox
|
|
|
|
|
|
Firefox can start `speech-dispatcher-dummy` and `speech-dispatcher-espeak-ng` in some cases that ask for a very low quantum and then fail to produce samples fast enough. It causes high CPU load and glitches in older versions.
|
|
|
Firefox ships with Reader enabled, which is enabled for speech synthesis (read text
|
|
|
aloud). Alas, with this merely enabled, Firefox will make pipewire hog CPU resources,
|
|
|
especially inside a VM.
|
|
|
|
|
|
You can disable this by setting `media.webspeech.synth.enabled` to `false` in `about:config`.
|
|
|
You can notice this in pw-top when the processes `speech-dispatcher-dummy` and
|
|
|
`speech-dispatcher-espeak-ng` take up a lot of CPU time.
|
|
|
|
|
|
Since 0.3.44 the pulse-server has a quirk to force a higher quantum on speech dispatcher, which should avoid the problem.
|
|
|
To compensate, turn off relevant settings in Firefox by opening the about:config URL in Firefox,
|
|
|
configure the settings as found below, then restart Firefox.
|
|
|
|
|
|
```
|
|
|
reader.parse-on-load.enabled false
|
|
|
media.webspeech.synth.enabled false
|
|
|
```
|
|
|
|
|
|
Since 0.3.44 the pulse-server has a quirk to force a higher quantum on speech dispatcher, which should alleviate the problem.
|
|
|
|
|
|
# Profiling
|
|
|
|
... | ... | |