ivan-hc / OBS-Studio-appimage

OBS Studio AppImage built on top of JuNest, the lightweight Arch Linux based distro that runs on top of any other Linux distro.
https://github.com/ivan-hc/ArchImage
15 stars 2 forks source link

high cpu usage. #11

Open Samueru-sama opened 1 month ago

Samueru-sama commented 1 month ago

I noticed that this appimage is using 30% of my 20 thread CPU by just having obs open not recording.

image

I tested disabling the preview and it didn't help.

ivan-hc commented 1 month ago

If you asked me this its because this behaviour is not normal, isn't it? I'm not an OBS user, so I don't know.

Samueru-sama commented 1 month ago

If you asked me this its because this behaviour is not normal, isn't it? I'm not an OBS user, so I don't know.

With the native arch package the cpu usage with obs open is 1%

I also made a crude obs-appimage using the ubuntu ppa, the appimage only works on the ubuntu container that I have, but if I open it there it also only uses 1% cpu.

ivan-hc commented 1 month ago

I've a AMD Ryzen 5 3600, OBS is just 3,5% in idle

ivan-hc commented 1 month ago

however, note that archimage is a arch linux container into an appimage, so its not just obs the program that is running, also bwrap is involved (it is into tha appimage), and maybe other processes to made the container work

Samueru-sama commented 1 month ago

I've a AMD Ryzen 5 3600, OBS is just 3,5% in idle

I have a xeon e5 2640 v4. I normally never see this level of cpu usage when doing anything but compiling.

The problem might be distro specific. Will test on other distros and get back.

Worth mentioning that this does not happen on gimp or other archimages you have.

Samueru-sama commented 1 month ago

Alright I tested on a fedora live environment, same issue.

The issue happens when I enable the screen capture source but I am not recording. Without it the cpu usage is only "8%" which is still very high.

I wonder if there is a race condition going on.