Bug Report FPS drop and sound lag

Mordrien

New Member
Hey there, lets get straight to the problem
Here we have my video - http://ru.twitch.tv/mordrien/b/354820544 , software capture, osu! is running fullscreen in 1920x1080 resolution. So, the problem is starting at 0:40, when my FPS seems to drop dramatically, also there is some sound lag every 30-40 sec. For me the game runs perfectly fine
You can see my settings and hardware in the log file
Code:
Open Broadcaster Software v0.466a - 64bit ( ^ω^)
-------------------------------
CPU Name: Intel(R) Core(TM) i5-3570 CPU @ 3.40GHz
CPU Speed: 3400MHz
Physical Memory:  8087MB Total, 5951MB 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: NVIDIA GeForce GTX 550 Ti
  Video Adapter Dedicated Video Memory: 1025179648
  Video Adapter Shared System Memory: 3221385216
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1920x1080
  Output resolution: 1920x1080
------------------------------------------
Loading up D3D10...
Using 7.1 surround speaker setup (experimental)
------------------------------------------
Using auxilary audio input: Microphone (2- SB Audigy)
------------------------------------------
Audio Encoding: AAC
    bitrate: 160
Using Monitor Capture
------------------------------------------
    device: Logitech HD Webcam C310,
    device id (null),
    chosen type: RGB24, usingFourCC: false, res: 1280x960 - 1280x960, fps: 5-30, fourCC: 00000000

Using directshow input
------------------------------------------
Video Encoding: x264
    fps: 60
    width: 1920, height: 1080
    preset: veryfast
    CBR: no
    max bitrate: 2500
    buffer size: 2500
    quality: 9
------------------------------------------
Using RTMP service: Twitch / Justin.tv
  Server selection: ﱀ)
bufferTime: 2519, outputRateWindowTime: 1000, dropThreshold: 3019
Total frames rendered: 7018, number of frames that lagged: 1423 (20.28%) (it's okay for some frames to lag)
RTMPPublisher::SocketLoop: Aborting due to bStopping
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: 13.724 ms] [avg calls per frame: 1] [children: 99%] [unaccounted: 0.991%]
| scene->Preprocess - [47.9%] [avg time: 6.577 ms] [avg calls per frame: 1]
| video encoding and uploading - [51.1%] [avg time: 7.011 ms] [avg calls per frame: 1] [children: 20%] [unaccounted: 31%]
| | CopyResource - [0.16%] [avg time: 0.022 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [1.04%] [avg time: 0.143 ms] [avg calls per frame: 0]
| | call to encoder - [18.7%] [avg time: 2.567 ms] [avg calls per frame: 0]
| | sending stuff out - [0.131%] [avg time: 0.018 ms] [avg calls per frame: 0]
==============================================================
Well, i can see high amount of lagging frames. The problem is no matter what settings i choose, be it resize to 720p, capturing osu! with game capture, using 32bit OBS, chaning preset, its all the same: drop of fps on my stream and this sound lag. I think my hardware can afford 60fps stream, so i'd appreciate your opinion on the subject
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
You can do one of two things:

1.) What I would like to know is whether any of the settings in the app effects this. Any setting. If you can find out which setting specifically effects this, it can give me a better idea of what's going on.

or 2.) It seems you stopped after two minutes about. What you could do is give me a second log with a long stream with this problem occuring (like 15 minutes or so) so the profiler can get better information. You only need to preview to generate the required data, actually streaming is not necessary.
 

Mordrien

New Member
1) The only setting i can think would affect this is a "framerate limit", which you can set as 60 (vsync - slows down your game to unplayable), 120 (which im using for 2 years), unlimited (fps goes beyond 1200). No ruslt in changing this, as i sayed the game runs smoothly for me in every option, but it doesnt matter if i limit it on 120fps or 1200fps - my stream still looks like it lacks of fps and the same sound lag is still there.
2) Heres the log for 25 minutes, hope this will clear the situation somehow
Code:
Open Broadcaster Software v0.466a - 64bit ( ^ω^)
-------------------------------
CPU Name: Intel(R) Core(TM) i5-3570 CPU @ 3.40GHz
CPU Speed: 3400MHz
Physical Memory:  8087MB Total, 6199MB 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: NVIDIA GeForce GTX 550 Ti
  Video Adapter Dedicated Video Memory: 1025179648
  Video Adapter Shared System Memory: 3221385216
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1920x1080
  Output resolution: 1920x1080
------------------------------------------
Loading up D3D10...
Using 7.1 surround speaker setup (experimental)
------------------------------------------
Using auxilary audio input: Microphone (2- SB Audigy)
------------------------------------------
Audio Encoding: AAC
    bitrate: 160
Using Monitor Capture
------------------------------------------
    device: Logitech HD Webcam C310,
    device id (null),
    chosen type: RGB24, usingFourCC: false, res: 1280x960 - 1280x960, fps: 5-30, fourCC: 00000000

Using directshow input
------------------------------------------
Video Encoding: x264
    fps: 60
    width: 1920, height: 1080
    preset: veryfast
    CBR: no
    max bitrate: 2500
    buffer size: 2500
    quality: 9
------------------------------------------
Using RTMP service: Twitch / Justin.tv
  Server selection: タ
bufferTime: 2620, outputRateWindowTime: 1000, dropThreshold: 3120
RTMPPublisher::BufferedSend: Buffer is full (336474 / 339968 bytes), waiting to send 4104 bytes
RTMPPublisher::BufferedSend: Buffer is full (336474 / 339968 bytes), waiting to send 4104 bytes
Total frames rendered: 89805, number of frames that lagged: 18282 (20.36%) (it's okay for some frames to lag)
RTMPPublisher::SocketLoop: Aborting due to bStopping
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: 13.925 ms] [avg calls per frame: 1] [children: 99.1%] [unaccounted: 0.912%]
| scene->Preprocess - [47.6%] [avg time: 6.629 ms] [avg calls per frame: 1]
| video encoding and uploading - [51.5%] [avg time: 7.169 ms] [avg calls per frame: 1] [children: 20.2%] [unaccounted: 31.2%]
| | CopyResource - [0.151%] [avg time: 0.021 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [1.08%] [avg time: 0.15 ms] [avg calls per frame: 0]
| | call to encoder - [18.9%] [avg time: 2.627 ms] [avg calls per frame: 0]
| | sending stuff out - [0.144%] [avg time: 0.02 ms] [avg calls per frame: 0]
==============================================================
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
Well actually I meant see what setting in OBS effects it, not setting in the game.

You could alternatively also try something other than monitor capture. Monitor capture is kind of poor. Could try turning on aero again, then use window capture (with borderless windowed game) or game capture.
 

Mordrien

New Member
So, i tried more variations of config (same settings - 1080p-60fps)
- screen capture and aero off - problem occurs - low fps, sound lag every 40-60 sec.
- screen capture and aero on - white screen, no game capture at all, sound lag presents
- game capture with aero off - same problems as with screen capture and aero off
- game capture with aero on - fps problem seem to disappear, BUT sound lag is still there
So, here is a log for last option with normal fps but lagging sound (10 min record)
Code:
Open Broadcaster Software v0.466a - 32bit (´・ω・`)
-------------------------------
CPU Name: Intel(R) Core(TM) i5-3570 CPU @ 3.40GHz
CPU Speed: 3400MHz
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 Enabled
------------------------------------------
Adapter 1
  Video Adapter: NVIDIA GeForce GTX 550 Ti
  Video Adapter Dedicated Video Memory: 1025179648
  Video Adapter Shared System Memory: 3221385216
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1920x1080
  Output resolution: 1920x1080
------------------------------------------
Loading up D3D10...
Using 7.1 surround speaker setup (experimental)
------------------------------------------
Using auxilary audio input: Microphone (2- SB Audigy)
------------------------------------------
Audio Encoding: AAC
    bitrate: 160
Using graphics capture
------------------------------------------
    device: Logitech HD Webcam C310,
    device id (null),
    chosen type: RGB24, usingFourCC: false, res: 1280x960 - 1280x960, fps: 5-30, fourCC: 00000000

Using directshow input
------------------------------------------
Video Encoding: x264
    fps: 60
    width: 1920, height: 1080
    preset: veryfast
    CBR: no
    max bitrate: 2500
    buffer size: 2500
    quality: 9
------------------------------------------
SharedTexCapture hooked
Total frames rendered: 32858, number of frames that lagged: 275 (0.84%) (it's okay for some frames to lag)
=====Stream End=======================================================================

Profiler results:

==============================================================
frame - [100%] [avg time: 6.02 ms] [avg calls per frame: 1] [children: 94.8%] [unaccounted: 5.25%]
| scene->Preprocess - [6.35%] [avg time: 0.382 ms] [avg calls per frame: 1]
| video encoding and uploading - [88.4%] [avg time: 5.322 ms] [avg calls per frame: 1] [children: 47.7%] [unaccounted: 40.7%]
| | CopyResource - [0.316%] [avg time: 0.019 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [0.0498%] [avg time: 0.003 ms] [avg calls per frame: 0]
| | call to encoder - [47.2%] [avg time: 2.843 ms] [avg calls per frame: 0]
| | sending stuff out - [0.116%] [avg time: 0.007 ms] [avg calls per frame: 0]
==============================================================
Amount of lagging frames lowered dramatically
So one problem left to go. Its really not that critical, but annoying as hell when you put your attention to it.
 

Mordrien

New Member
Here another log for 1 hour and 41 min.
Code:
Open Broadcaster Software v0.466a - 32bit (´・ω・`)
-------------------------------
CPU Name: Intel(R) Core(TM) i5-3570 CPU @ 3.40GHz
CPU Speed: 3400MHz
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 Enabled
------------------------------------------
Adapter 1
  Video Adapter: NVIDIA GeForce GTX 550 Ti
  Video Adapter Dedicated Video Memory: 1025179648
  Video Adapter Shared System Memory: 3221385216
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1920x1080
  Output resolution: 1920x1080
------------------------------------------
Loading up D3D10...
Using 7.1 surround speaker setup (experimental)
------------------------------------------
Using auxilary audio input: Microphone (2- SB Audigy)
------------------------------------------
Audio Encoding: AAC
    bitrate: 160
Using graphics capture
------------------------------------------
    device: Logitech HD Webcam C310,
    device id (null),
    chosen type: RGB24, usingFourCC: false, res: 1280x960 - 1280x960, fps: 5-30, fourCC: 00000000

Using directshow input
------------------------------------------
Video Encoding: x264
    fps: 60
    width: 1920, height: 1080
    preset: veryfast
    CBR: no
    max bitrate: 2500
    buffer size: 2500
    quality: 9
------------------------------------------
Using RTMP service: Twitch / Justin.tv
  Server selection: rtmp://live-fra.justin.tv/app
bufferTime: 2643, outputRateWindowTime: 1000, dropThreshold: 3143
SharedTexCapture hooked
SharedTexCapture hooked
SharedTexCapture hooked
SharedTexCapture hooked
SharedTexCapture hooked
SharedTexCapture hooked
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
Using bitmap image
SharedTexCapture hooked
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
SharedTexCapture hooked
SharedTexCapture hooked
SharedTexCapture hooked
SharedTexCapture hooked
SharedTexCapture hooked
SharedTexCapture hooked
SharedTexCapture hooked
SharedTexCapture hooked
SharedTexCapture hooked
SharedTexCapture hooked
SharedTexCapture hooked
SharedTexCapture hooked
SharedTexCapture hooked
SharedTexCapture hooked
SharedTexCapture hooked
SharedTexCapture hooked
SharedTexCapture hooked
RTMPPublisher::BufferedSend: Buffer is full (335989 / 339968 bytes), waiting to send 4097 bytes
RTMPPublisher::BufferedSend: Buffer is full (335989 / 339968 bytes), waiting to send 4097 bytes
SharedTexCapture hooked
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
Using bitmap image
Total frames rendered: 361439, number of frames that lagged: 3190 (0.88%) (it's okay for some frames to lag)
RTMPPublisher::SocketLoop: Aborting due to bStopping
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: 6.387 ms] [avg calls per frame: 1] [children: 95.3%] [unaccounted: 4.73%]
| scene->Preprocess - [6.34%] [avg time: 0.405 ms] [avg calls per frame: 1]
| video encoding and uploading - [88.9%] [avg time: 5.68 ms] [avg calls per frame: 1] [children: 47.5%] [unaccounted: 41.4%]
| | CopyResource - [0.313%] [avg time: 0.02 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [1.78%] [avg time: 0.114 ms] [avg calls per frame: 0]
| | call to encoder - [44.9%] [avg time: 2.868 ms] [avg calls per frame: 0]
| | sending stuff out - [0.485%] [avg time: 0.031 ms] [avg calls per frame: 0]
==============================================================
 

Mordrien

New Member
That is why i did the first video so short. Well, you can hear the sound stop for half a second or less and then continue like nothing happens. It wouldnt bother me, unless it happened every 1-2 min or so
 

Mordrien

New Member
Mordrien said:
You can hear the sound stop for half a second or less and then continue like nothing happens. It wouldnt bother me, unless it happened every 1-2 min or so
Bump. Any ideas?
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
I unfortunately don't have any ideas currently. I still don't know specifically about the sound lag. I mean I know others who have been playing this game fine without problems so I just sort of have no clue what's going on.

I wish I could say to everybody "I know what the problem is and I'm working on it" but sometimes I just don't always have an answer.
 
Top