Skip to content

Pause and Resume Recording Doubles or Triples CPU usage #3148

Closed as not planned

Description

@pllovervoltage

Platform

Operating system and version: Windows 10 1809
OBS Studio version: 25.08

Repeatable in two systems. (System1 i5-1035G1) (System2 2200G + RX 580)

Expected Behavior

CPU usage remains low at 7-12%

Current Behavior

Pausing and then resuming the recording increases cpu to 20-40%
Increased cpu usage persists until end of recording (>30min)

Steps to Reproduce

  1. Start Recording
  2. Pause Recording
  3. Resume Recording

System1
Before Pausing
11

After Pausing
12

High Usage Persists for more than 5 min
13

System2
Before Pausing
11

After Pausing
12

High Usage Persists for more than 5 min
13

Additional information

Settings:
1

Default settings with attached page with changes. Two changes not in screen are...
Video > Output Resolution > Changed to match base resolution
Output > Audio > Track 1 > Audio Bitrate > Changed to 64

Logs:
https://obsproject.com/logs/IR9mIidpY0kogFPy

https://obsproject.com/logs/kJE2zrdi5WV6WYR-

Activity

  1. Gol-D-Ace commented on Jul 10, 2020

    @Gol-D-Ace
    Collaborator
  2. added
    issue/confirmed
    on Jul 10, 2020
  3. notr1ch commented on Jul 23, 2020

    @notr1ch
    Member

    Any special tricks to reproduce this? I can't seem to trigger it in either simple or advanced mode, even with the settings above.

  4. skeletonbow commented on Aug 2, 2020

    @skeletonbow
    Contributor

    Found this bug report while having the exact same problem when playing (rather than recording) media files with 25.0.8. I've reproduced the playback issue with the current nightly build without any plugins or scripts present, my CPU usage when playing video starts at 8% with the stable release or 4% with the nightly (the difference most likely being plugins used with the stable release), and when the video is paused it jumps to 20% on stable release or 14% on nightly, approx 10-12% CPU usage increase for pausing a video.

    Not sure if it is related to this recording bug, but similar symptoms so I thought I'd mention it here. Having said that, I decided to test for this recording bug also and my CPU usage does not increase on pausing a recording oddly enough. I'm using AMD Radeon hardware (HD7850) with the stock AMF hardware encoder in case that is a useful data point for this particular bug report.

    Filed bug #3235 for the media playback CPU spike if I can't find one already present as the playback and recording issues could be separate issues.

  5. skeletonbow commented on Aug 2, 2020

    @skeletonbow
    Contributor

    Tested this recording bug on my nVidia laptop (1050Ti) using native Nvenc(new) encoder (override stream encoder), and unable to reproduce the CPU spike during pause on record so far. Could be specific encoder settings that cause it perhaps?

  6. Gol-D-Ace commented on Aug 2, 2020

    @Gol-D-Ace
    Collaborator

    @skeletonbow
    The log shows the usage of x264 and I reproduced it with x264.

    I honestly didn't come up with the idea to try NVENC because it isn't a CPU (software) based Encoder.

  7. skeletonbow commented on Aug 2, 2020

    @skeletonbow
    Contributor

    Tested with x264 and can confirm a 15% spike in CPU usage during recording pause.

  8. RytoEX commented on Oct 23, 2020

    @RytoEX
    Member

    @Gol-D-Ace and I were trying to reproduce this recently. I was unable to reproduce on 26.0.2, but @Gol-D-Ace was able to reproduce on 26.0.2. One of the only common elements I could see between the logs was that the affected systems all had 8GB of RAM, including one or two other logs that I examined. This seems like it would be irrelevant, but it's the only thing that stood out to me.

    @skeletonbow Can you still reproduce this and provide a log?

  9. pllovervoltage commented on Oct 24, 2020

    @pllovervoltage
    Author

    @RytoEX I recently upgraded 2200g system from 8GB to 16Gb and on latest obs version I still experience cpu bug.

  10. Gol-D-Ace commented on Oct 24, 2020

    @Gol-D-Ace
    Collaborator

    In case you are trying to reproduce this.
    I need multiple tries to trigger this.

    Usually I close OBS after an failed attempt and open it again.

    So far I was able to reproduce this with x264 in simple (recording preset) and advanced mode.

    R1CH does have the feeling it might be something related to Qt.

  11. flaeri commented on Oct 24, 2020

    @flaeri
    Contributor

    Tested with both 32gb and 8gb ram, also tested using 85+% the 8gb stick , and it did not seem to matter. Cant reproduce. i7-8700, win 2004, obs 26.2

  12. Gol-D-Ace commented on Oct 24, 2020

    @Gol-D-Ace
    Collaborator

    I recently upgraded 2200g system from 8GB to 16Gb and on latest obs version I still experience cpu bug.

    Can you reproduce this every try or do you need multiple attempts as well?
    @pllovervoltage

  13. pllovervoltage commented on Oct 24, 2020

    @pllovervoltage
    Author

    @Gol-D-Ace I've been able to reproduce this consistently every time.

  14. Andrefty commented on Mar 15, 2021

    @Andrefty

    I am having the same issue on a i5-8365U powered laptop, using the QuickSync H.264 encoder.

  15. Orlean54 commented on May 22, 2021

    @Orlean54

    Am facing the same issue on windows. Without pausing cpu usage is around 8% whereas pausing and unpausing causes cpu usage to skyrocket to around +55% causing encoding overloads and it stays at a high usage until the recording is stopped.
    Tried this in linux, didn't face this issue there.

  16. 11 remaining items

  17. RytoEX commented on Oct 14, 2022

    @RytoEX
    Member

    I've included two logs in the initial post.

    Here's an additional log in 28.0.3 https://obsproject.com/logs/IGo9R2ndjQmko8Y1

    New versions have new logging. It also helps us to see more context to what actions you took to produce the issue, what sources could possibly be related, as we have had little luck reproducing it on our end. Ideally, it would be most helpful to reproduce this with a completely empty scene collection, or one with just one source, to rule out as many factors as possible.

  18. reopened this on Oct 14, 2022
  19. pllovervoltage commented on Oct 14, 2022

    @pllovervoltage
    Author

    Understood. I deleted my appdata folder to reset obs to default settings. Only setting I changed afterwards was setting encoder to x264. Problem repeated.

    https://obsproject.com/logs/rTzHofwoZmv6rPk2

  20. Krydax commented on Oct 27, 2022

    @Krydax

    I am having this issue consistently (but strangely).

    It seems to be a bit of a crapshoot based entirely on when I open OBS.

    Steps:

    1. Open OBS (with admin privileges)
    2. Start recording
    3. pause
    4. unpause
    5. look at CPU usage. ITS HIGH
    6. close OBS
    7. open OBS (again with admin)
    8. start recording
    9. pause
    10. unpause
    11. look at CPU usage. Now it's normal?
    12. repeat

    It seems like OBS either has a good start or bad start. If it's a bad start, nothing I do (scene changes, even recording an empty blank scene, etc) will make the pause/unpause issue go away. If it's a GOOD start, then it just works, and keeps working normally, again even if I change scenes or do multiple recording start/stops etc.

    Log from a bad start: https://obsproject.com/logs/7ft4zMT5VDF29NB8

    another bad one: https://obsproject.com/logs/J-BUFccebObmqYnh

    Log from a good start (no issue): https://obsproject.com/logs/0wWaSXVWgXMvnnZp

    Hope this is helpful. It's a super weird issue. So yes, my current workaround is to open OBS, try a 5 second recording with a pause/unpause, look at CPU, if bad, close OBS and try again, until it works. Lol.

    P.S. I tried changing from NVENC H.264 to HEVC or x264 and the issue persisted. Also persisted whether I had something like CQP or CBR selected

  21. notr1ch commented on Oct 27, 2022

    @notr1ch
    Member

    Have you checked your CPU frequencies when the issue happens? Perhaps the CPU downclocks when OBS is paused but doesn't feel the need to go to max frequency after unpausing?

  22. Krydax commented on Oct 27, 2022

    @Krydax

    As far as I could tell, CPU didn't downclock at all (looking at resource monitor) while paused. GPU usage was about the same whether issue was happening or not.

  23. pllovervoltage commented on Jan 25, 2023

    @pllovervoltage
    Author

    Issue no longer present in 29.0.0.

  24. Krydax commented on Jan 25, 2023

    @Krydax

    Issue is still present in 29.0.0 for me. Please do not close this :D

    I have to play OBS roulette every time I want to record. I hit record, pause/unpause real quick, and if CPU usage shoots, up, close and open OBS again until it doesn't shoot up.

  25. Krydax commented on Jan 25, 2023

    @Krydax

    I even got a whole new mobo, CPU, and ram, and the issue is still present!

  26. jcyrss commented on Aug 2, 2023

    @jcyrss

    I met the same issue here on Mac mini M1 with OBS 29.1.2

  27. ThaiCat commented on Feb 20, 2024

    @ThaiCat

    Still present in OBS 30.0.2

  28. Fenrirthviti commented on Oct 14, 2024

    @Fenrirthviti
    Member

    Since this issue is just being used as a catch-all for generic performance issues in OBS, and the original report is very outdated and unactionable, I am closing this.

    Anyone experiencing performance issues should first go through our forums or Discord for assistance. If a specific set of reproduction steps for unintended high usage can be found, please open a new issue with those steps against the latest release of OBS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/confirmed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions