Bug Report Local Recording FPS fluctuating

Xanek

New Member
FPS counter on OBS fluctuates between 20~30fps, no clue why it won't stay steady @30fps
I have a i5-3570k, Radeon HD 5770, 12GB RAM.

Code:
Open Broadcaster Software v0.466a - 32bit (´・ω・`)
-------------------------------
CPU Name: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz
CPU Speed: 3417MHz
Physical Memory:  4095MB Total, 4095MB Free
stepping id: 9, model 10, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 4, total cores 4
Windows Version: 6.1 Build 7601 S
Aero is Disabled
------------------------------------------
Adapter 1
  Video Adapter: ATI Radeon HD 5700 Series
  Video Adapter Dedicated Video Memory: 1055502336
  Video Adapter Shared System Memory: 1854152704
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1280x720
  Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
------------------------------------------
Using auxilary audio input: Stereo Mix (Realtek High Definition Audio)
------------------------------------------
Audio Encoding: AAC
    bitrate: 96
Using graphics capture
------------------------------------------
Video Encoding: x264
    fps: 30
    width: 1280, height: 720
    preset: faster
    CBR: yes
    max bitrate: 3500
------------------------------------------
SharedTexCapture hooked
Total frames rendered: 289, number of frames that lagged: 0 (0.00%) (it's okay for some frames to lag)
=====Stream End=======================================================================
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1280x720
  Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
------------------------------------------
Using auxilary audio input: Stereo Mix (Realtek High Definition Audio)
------------------------------------------
Audio Encoding: AAC
    bitrate: 96
Using graphics capture
------------------------------------------
Video Encoding: x264
    fps: 30
    width: 1280, height: 720
    preset: faster
    CBR: yes
    max bitrate: 3500
------------------------------------------
SharedTexCapture hooked
Total frames rendered: 789, number of frames that lagged: 10 (1.27%) (it's okay for some frames to lag)
=====Stream End=======================================================================
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1440x900
  Output resolution: 1440x900
------------------------------------------
Loading up D3D10...
------------------------------------------
Using auxilary audio input: Stereo Mix (Realtek High Definition Audio)
------------------------------------------
Audio Encoding: AAC
    bitrate: 96
Using graphics capture
------------------------------------------
Video Encoding: x264
    fps: 30
    width: 1440, height: 900
    preset: faster
    CBR: yes
    max bitrate: 5000
------------------------------------------
SharedTexCapture hooked
Total frames rendered: 474, number of frames that lagged: 6 (1.27%) (it's okay for some frames to lag)
=====Stream End=======================================================================

Profiler results:

==============================================================
frame - [100%] [avg time: 11.179 ms] [avg calls per frame: 1] [children: 95.7%] [unaccounted: 4.28%]
| scene->Preprocess - [0.0268%] [avg time: 0.003 ms] [avg calls per frame: 1]
| video encoding and uploading - [95.7%] [avg time: 10.697 ms] [avg calls per frame: 1] [children: 42.5%] [unaccounted: 53.2%]
| | CopyResource - [0.134%] [avg time: 0.015 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [0.0447%] [avg time: 0.005 ms] [avg calls per frame: 0]
| | call to encoder - [10.5%] [avg time: 1.177 ms] [avg calls per frame: 0]
| | sending stuff out - [31.8%] [avg time: 3.551 ms] [avg calls per frame: 0]
==============================================================
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
Is that so? This is rather odd, because it's reporting very few actual lagged frames. Typically, the only thing that would or could cause the FPS counter to drop is exactly that, the "lagged frames" you see in the log. It says you had almost no noticeable amount. 1.27%. So I'm rather confused at why the FPS counter would be dropping. That's rather strange.
 

Xanek

New Member
It can record my desktop just fine at 30fps, though within the first 15 seconds of playing a game the fps starts to fluctuate on the local recording. In-game fps is normal, just obs recording is weird.
Also the fps fluctuating is noticeable in the recording after watching it.
 

Xanek

New Member
No good either, started off with 60fps on nothing, 48 on a game menu, 15~50 fps while moving ingame

Here's the log of the 60fps one, there is a lot of lagged frames on this log this time.
Code:
Open Broadcaster Software v0.466a - 32bit (´・ω・`)
-------------------------------
CPU Name: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz
CPU Speed: 3417MHz
Physical Memory:  4095MB Total, 4095MB Free
stepping id: 9, model 10, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 4, total cores 4
Windows Version: 6.1 Build 7601 S
Aero is Disabled
------------------------------------------
Adapter 1
  Video Adapter: ATI Radeon HD 5700 Series
  Video Adapter Dedicated Video Memory: 1055502336
  Video Adapter Shared System Memory: 1854152704
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1440x900
  Output resolution: 1440x900
------------------------------------------
Loading up D3D10...
------------------------------------------
Using auxilary audio input: Microphone (Turtle Beach P11 Headset)
------------------------------------------
Audio Encoding: AAC
    bitrate: 96
Using graphics capture
Using Window Capture
------------------------------------------
Video Encoding: x264
    fps: 60
    width: 1440, height: 900
    preset: faster
    CBR: yes
    max bitrate: 5000
------------------------------------------
SharedTexCapture hooked
Total frames rendered: 2346, number of frames that lagged: 1457 (62.11%) (it's okay for some frames to lag)
=====Stream End=======================================================================

Profiler results:

==============================================================
frame - [100%] [avg time: 23.278 ms] [avg calls per frame: 1] [children: 87.8%] [unaccounted: 12.2%]
| scene->Preprocess - [51.4%] [avg time: 11.971 ms] [avg calls per frame: 1]
| video encoding and uploading - [36.4%] [avg time: 8.467 ms] [avg calls per frame: 1] [children: 20.4%] [unaccounted: 16%]
| | CopyResource - [0.412%] [avg time: 0.096 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [0.00859%] [avg time: 0.002 ms] [avg calls per frame: 0]
| | call to encoder - [19.9%] [avg time: 4.633 ms] [avg calls per frame: 0]
| | sending stuff out - [0.0473%] [avg time: 0.011 ms] [avg calls per frame: 0]
==============================================================
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
You have both window capture and game capture on at the same time, what exactly are you capturing with window capture?
 

Xanek

New Member
Oh whoops, I forgot that I had that one still there.
I removed it and here are the logs from a 1 minute recording
"similar" results, fps still fluctuated about the same as before.
Code:
Open Broadcaster Software v0.466a - 32bit (´・ω・`)
-------------------------------
CPU Name: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz
CPU Speed: 3417MHz
Physical Memory:  4095MB Total, 4095MB Free
stepping id: 9, model 10, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 4, total cores 4
Windows Version: 6.1 Build 7601 S
Aero is Disabled
------------------------------------------
Adapter 1
  Video Adapter: ATI Radeon HD 5700 Series
  Video Adapter Dedicated Video Memory: 1055502336
  Video Adapter Shared System Memory: 1854152704
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1440x900
  Output resolution: 1440x900
------------------------------------------
Loading up D3D10...
------------------------------------------
Using auxilary audio input: Microphone (Turtle Beach P11 Headset)
------------------------------------------
Audio Encoding: AAC
    bitrate: 96
Using graphics capture
------------------------------------------
Video Encoding: x264
    fps: 60
    width: 1440, height: 900
    preset: faster
    CBR: yes
    max bitrate: 5000
------------------------------------------
SharedTexCapture hooked
Total frames rendered: 2718, number of frames that lagged: 454 (16.70%) (it's okay for some frames to lag)
=====Stream End=======================================================================

Profiler results:

==============================================================
frame - [100%] [avg time: 13.858 ms] [avg calls per frame: 1] [children: 87.5%] [unaccounted: 12.5%]
| scene->Preprocess - [0.0216%] [avg time: 0.003 ms] [avg calls per frame: 1]
| video encoding and uploading - [87.5%] [avg time: 12.125 ms] [avg calls per frame: 1] [children: 61.4%] [unaccounted: 26%]
| | CopyResource - [0.267%] [avg time: 0.037 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [0.202%] [avg time: 0.028 ms] [avg calls per frame: 0]
| | call to encoder - [60.9%] [avg time: 8.44 ms] [avg calls per frame: 0]
| | sending stuff out - [0.0722%] [avg time: 0.01 ms] [avg calls per frame: 0]
==============================================================
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
Well you do have around 16% lagged frames, seems to be potentially encoder related. See if "veryfast" changes anything.
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
Because faster uses more CPU.

ultrafast - Uses very little CPU. Quality is poor and blocky but it at least encodes the video.

superfast - Uses fairly little CPU. Quality is somewhat poor. Usually used with dual core or poorer CPUs only.

veryfast - CPU usage is good for just about all computer setups. Quality is also good. This is usually the best setting for live streaming and gets the best results on most PCs. We have a warning display when people switch away from this for a good reason. However, note that even 4-core i5 desktop CPUs have trouble doing 1080p at 60fps with this. Better CPUs with hyperthreading such as the i7 can usually handle it fine though.

faster - CPU usage is noticably more than veryfast. Quality is a bit better. The tradeoff is generally not worth it unless you're streaming a lower resolution stream. For any sort of HD streams you need the absolute best CPU possible, probably overclocked as well to use this real time. An i5 probably won't cut it for that.

fast and lower - Generally only for very low resolution streaming to help increase quality as an offset to the lower resolutions. These aren't settings that I could ever recommend
 
Top