Bug Report FPS drop

Dubardo

New Member
I'm losing about 30-50% of my FPS with the "Preview Stream" option

Is there anyway to stream without having the preview active? Would it save a few FPS? Thanks

i have a i7 920 @ 3,66 ghz and a GTx 670
 

Zephiris

Member
For reference, you can disable the stream preview by right clicking in the video area and disabling it. But this generally won't cause FPS drops, so it would still be a good idea to post a log.
 

Dubardo

New Member
LOG of that session:
http://www.youtube.com/watch?v=j6jdjY5DnoE

Code:
Open Broadcaster Software v0.48.007b (experimental test build) - 64bit ( ^ω^)
-------------------------------
CPU Name: Intel(R) Core(TM) i7 CPU         920  @ 2.67GHz
CPU Speed: 3657MHz
Physical Memory:  24566MB Total, 17618MB Free
stepping id: 4, model 10, family 6, type 0, extmodel 0, extfamily 0, HTT 1, logical cores 8, total cores 4
monitor 1: pos={0, 0}, size={1920, 1200}
monitor 2: pos={-1920, 0}, size={1920, 1200}
monitor 3: pos={1920, 0}, size={1920, 1200}
monitor 4: pos={0, 1200}, size={1920, 1080}
Windows Version: 6.1 Build 7601 S
Aero is Disabled
------------------------------------------
Adapter 1
  Video Adapter: NVIDIA GeForce GTX 670
  Video Adapter Dedicated Video Memory: 2091581440
  Video Adapter Shared System Memory: 2147479552
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1920x1080
  Output resolution: 1920x1080
------------------------------------------
Loading up D3D10...
Playback device Default
------------------------------------------
Using desktop audio input: SaffireLE Output 1/2 (Focusrite SaffireLE WDM)
------------------------------------------
Using auxilary audio input: Microphone (USB Audio Device)
------------------------------------------
Audio Encoding: AAC
    bitrate: 96
------------------------------------------
    device: Video Camera           ,
    device id \\?\usb#vid_045e&pid_0294&mi_00#7&1d45e950&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global,
    chosen type: YUY2, usingFourCC: false, res: 640x480 - 640x480, frameIntervals: 333333-2000000, fourCC: 'YUY2'
    audio device: (null),
    audio device id (null),

Using directshow input
Using bitmap image
Using Monitor Capture
------------------------------------------
Video Encoding: x264
    fps: 60
    width: 1920, height: 1080
    preset: veryfast
    CBR: no
    CFR: no
    max bitrate: 2500
    buffer size: 2500
    quality: 6
------------------------------------------
Total frames rendered: 1099, number of frames that lagged: 2 (0.18%) (it's okay for some frames to lag)
Total duplicated frames: 0 (0.00%)
=====Stream End=======================================================================
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1920x1080
  Output resolution: 1920x1080
------------------------------------------
Loading up D3D10...
Playback device Default
------------------------------------------
Using desktop audio input: SaffireLE Output 1/2 (Focusrite SaffireLE WDM)
------------------------------------------
Using auxilary audio input: Microphone (USB Audio Device)
------------------------------------------
Audio Encoding: AAC
    bitrate: 96
------------------------------------------
    device: Video Camera           ,
    device id \\?\usb#vid_045e&pid_0294&mi_00#7&1d45e950&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global,
    chosen type: YUY2, usingFourCC: false, res: 640x480 - 640x480, frameIntervals: 333333-2000000, fourCC: 'YUY2'
    audio device: (null),
    audio device id (null),

Using directshow input
Using bitmap image
Using Monitor Capture
------------------------------------------
Video Encoding: x264
    fps: 60
    width: 1920, height: 1080
    preset: veryfast
    CBR: no
    CFR: no
    max bitrate: 2500
    buffer size: 2500
    quality: 6
------------------------------------------
Total frames rendered: 2051, number of frames that lagged: 172 (8.39%) (it's okay for some frames to lag)
Total duplicated frames: 31 (1.51%)
=====Stream End=======================================================================
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1920x1080
  Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
Playback device Default
------------------------------------------
Using desktop audio input: SaffireLE Output 1/2 (Focusrite SaffireLE WDM)
------------------------------------------
Using auxilary audio input: Microphone (USB Audio Device)
------------------------------------------
Audio Encoding: AAC
    bitrate: 96
------------------------------------------
    device: Video Camera           ,
    device id \\?\usb#vid_045e&pid_0294&mi_00#7&1d45e950&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global,
    chosen type: YUY2, usingFourCC: false, res: 640x480 - 640x480, frameIntervals: 333333-2000000, fourCC: 'YUY2'
    audio device: (null),
    audio device id (null),

Using directshow input
Using bitmap image
Using Monitor Capture
------------------------------------------
Video Encoding: x264
    fps: 60
    width: 1280, height: 720
    preset: veryfast
    CBR: no
    CFR: no
    max bitrate: 2500
    buffer size: 2500
    quality: 6
------------------------------------------
Total frames rendered: 5888, number of frames that lagged: 18 (0.31%) (it's okay for some frames to lag)
Total duplicated frames: 669 (11.36%)
=====Stream End=======================================================================
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1920x1080
  Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
Playback device Default
------------------------------------------
Using desktop audio input: SaffireLE Output 1/2 (Focusrite SaffireLE WDM)
------------------------------------------
Using auxilary audio input: Microphone (USB Audio Device)
------------------------------------------
Audio Encoding: AAC
    bitrate: 96
------------------------------------------
    device: Video Camera           ,
    device id \\?\usb#vid_045e&pid_0294&mi_00#7&1d45e950&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global,
    chosen type: YUY2, usingFourCC: false, res: 640x480 - 640x480, frameIntervals: 333333-2000000, fourCC: 'YUY2'
    audio device: (null),
    audio device id (null),

Using directshow input
Using bitmap image
Using Monitor Capture
------------------------------------------
Video Encoding: x264
    fps: 60
    width: 1280, height: 720
    preset: veryfast
    CBR: no
    CFR: no
    max bitrate: 2500
    buffer size: 2500
    quality: 6
------------------------------------------
Total frames rendered: 222, number of frames that lagged: 0 (0.00%) (it's okay for some frames to lag)
Total duplicated frames: 0 (0.00%)
=====Stream End=======================================================================
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1920x1080
  Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
Playback device Default
------------------------------------------
Using desktop audio input: SaffireLE Output 1/2 (Focusrite SaffireLE WDM)
------------------------------------------
Using auxilary audio input: Microphone (USB Audio Device)
------------------------------------------
Audio Encoding: AAC
    bitrate: 96
------------------------------------------
    device: Video Camera           ,
    device id \\?\usb#vid_045e&pid_0294&mi_00#7&1d45e950&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global,
    chosen type: YUY2, usingFourCC: false, res: 640x480 - 640x480, frameIntervals: 333333-2000000, fourCC: 'YUY2'
    audio device: (null),
    audio device id (null),

Using directshow input
Using bitmap image
Using Monitor Capture
------------------------------------------
Video Encoding: x264
    fps: 60
    width: 1280, height: 720
    preset: veryfast
    CBR: no
    CFR: no
    max bitrate: 2500
    buffer size: 2500
    quality: 6
------------------------------------------
Total frames rendered: 1106, number of frames that lagged: 4 (0.36%) (it's okay for some frames to lag)
Total duplicated frames: 4 (0.36%)
=====Stream End=======================================================================
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1920x1080
  Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
Playback device Default
------------------------------------------
Using desktop audio input: SaffireLE Output 1/2 (Focusrite SaffireLE WDM)
------------------------------------------
Using auxilary audio input: Microphone (USB Audio Device)
------------------------------------------
Audio Encoding: AAC
    bitrate: 96
------------------------------------------
    device: Video Camera           ,
    device id \\?\usb#vid_045e&pid_0294&mi_00#7&1d45e950&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global,
    chosen type: YUY2, usingFourCC: false, res: 640x480 - 640x480, frameIntervals: 333333-2000000, fourCC: 'YUY2'
    audio device: (null),
    audio device id (null),

Using directshow input
Using bitmap image
Using Monitor Capture
------------------------------------------
Video Encoding: x264
    fps: 60
    width: 1280, height: 720
    preset: veryfast
    CBR: no
    CFR: no
    max bitrate: 2500
    buffer size: 2500
    quality: 6
------------------------------------------
Total frames rendered: 1931, number of frames that lagged: 459 (23.77%) (it's okay for some frames to lag)
Total duplicated frames: 198 (10.25%)
=====Stream End=======================================================================
Using fixed low latency mode, factor 20
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1920x1080
  Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
Playback device Default
------------------------------------------
Using desktop audio input: SaffireLE Output 1/2 (Focusrite SaffireLE WDM)
------------------------------------------
Using auxilary audio input: Microphone (USB Audio Device)
------------------------------------------
Audio Encoding: AAC
    bitrate: 96
------------------------------------------
    device: Video Camera           ,
    device id \\?\usb#vid_045e&pid_0294&mi_00#7&1d45e950&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global,
    chosen type: YUY2, usingFourCC: false, res: 640x480 - 640x480, frameIntervals: 333333-2000000, fourCC: 'YUY2'
    audio device: (null),
    audio device id (null),

Using directshow input
Using bitmap image
Using Monitor Capture
------------------------------------------
Video Encoding: x264
    fps: 60
    width: 1280, height: 720
    preset: veryfast
    CBR: no
    CFR: no
    max bitrate: 2500
    buffer size: 2500
    quality: 6
------------------------------------------
Using RTMP service: Twitch / Justin.tv
  Server selection: rtmp://live-3c.justin.tv/app
SO_SNDBUF was at 8192
SO_SNDBUF is now 65536
Total frames rendered: 1748, number of frames that lagged: 322 (18.42%) (it's okay for some frames to lag)
Total duplicated frames: 101 (5.78%)
RTMPPublisher::SocketLoop: Aborting due to loop exit
Number of times waited to send: 0, Waited for a total of 0 bytes
Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
=====Stream End=======================================================================

Profiler results:

==============================================================
frame - [100%] [avg time: 9.257 ms] [avg calls per frame: 1] [children: 93.5%] [unaccounted: 6.51%]
| scene->Preprocess - [72.3%] [avg time: 6.693 ms] [avg calls per frame: 1]
| video encoding and uploading - [21.2%] [avg time: 1.961 ms] [avg calls per frame: 1] [children: 19.7%] [unaccounted: 1.5%]
| | CopyResource - [0.184%] [avg time: 0.017 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [0.313%] [avg time: 0.029 ms] [avg calls per frame: 0]
| | call to encoder - [19.1%] [avg time: 1.768 ms] [avg calls per frame: 0]
| | sending stuff out - [0.0864%] [avg time: 0.008 ms] [avg calls per frame: 0]
==============================================================

Thanks for the info on enabling the view, i didn't know about thoses things!
 

R1CH

Forum Admin
Developer
Keep in mind the "Preview Stream" is simulating everything except the actual streaming part, so the CPU impact is caused by the encoder trying to encode 1080p 60 FPS.
 

Dubardo

New Member
Ok, reducing the FPs to 30 and almost gained back half of the loss even more, it's more reasonnable now!

90fps to 75 instead of 60! Should've listen to the setup guide as usual

Thanks for all the other info, i still learned a lot!
 
Top