Question / Help Dropping frames

Morder

New Member
Since I changed my processor from an FX-6100 to an i7 4770k, the OBS client started dropping a lot of frames.

I made a thread earlier this month about it. I was told to change the window capture to game capture. It helped for the most part but on faster paced games, I still drop frames.

Where I highlighted the FPS with a blue box is where the framerate changes all the times. It was set to 45 and would stay at 45 until I start playing. It would drop as low as 1 FPS.

VtpjJGI.png


It's still doing it with the game capture options, it's minor but not really smooth for the eye and I'd like to fix it.

Here's another example of bad framerate. The stream is set at 55FPS but it's a lot more choppy than it should be. It's fine when I'm not looking at the more graphical part of the city, then it drops to ~35FPS when there's a little bit more action.

I'd like to also mention the FPS in game is averaging 90, so it's not the problem.

http://www.twitch.tv/morderx/c/4477592
 

Morder

New Member
Code:
19:02:09: =====Stream Start: 2014-06-16, 19:02:09===============================================
19:02:09:  Multithreaded optimizations: On
19:02:09:  Base resolution: 1280x720
19:02:09:  Output resolution: 1280x720
19:02:09: ------------------------------------------
19:02:09: Loading up D3D10 on NVIDIA GeForce GTX 780 Ti (Adapter 1)...
19:02:09: ------------------------------------------
19:02:09: Audio Format: 48000 Hz
19:02:09: ------------------------------------------
19:02:09: Audio Channels: 2 Ch
19:02:09: Playback device Default
19:02:09: ------------------------------------------
19:02:09: Using desktop audio input: Speakers (3- Plantronics GameCom 780)
19:02:09: Global Audio time adjust: 0
19:02:09: Using 5.1 surround speaker setup
19:02:09: ------------------------------------------
19:02:09: Using auxilary audio input: Microphone (3- Plantronics GameCom 780)
19:02:09: Mic time offset: 0
19:02:09: ------------------------------------------
19:02:09: Audio Encoding: AAC
19:02:09:  bitrate: 128
19:02:09: Using graphics capture
19:02:09: Trying to hook process: iw6mp64_ship.exe
19:02:09: Scene buffering time set to 700
19:02:09: ------------------------------------------
19:02:09: Video Encoding: x264
19:02:09:  fps: 55
19:02:09:  width: 1280, height: 720
19:02:09:  preset: veryfast
19:02:09:  profile: main
19:02:09:  keyint: 110
19:02:09:  CBR: yes
19:02:09:  CFR: yes
19:02:09:  max bitrate: 3500
19:02:09:  buffer size: 3500
19:02:09: ------------------------------------------
19:02:09: SharedTexCapture hooked
19:02:11: Using RTMP service: Twitch / Justin.tv
19:02:11:  Server selection: rtmp://live-jfk.justin.tv/app
19:02:11:  Interface: Intel(R) Ethernet Connection (2) I218-V (ethernet, 100 mbps)
19:02:12: Completed handshake with rtmp://live-jfk.justin.tv/app in 274 ms.
19:02:12: SO_SNDBUF was at 8192
19:02:12: SO_SNDBUF is now 65536
19:02:13: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 131072 (buffer: 31400 / 463872)
19:02:15: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 262144 (buffer: 26406 / 463872)
19:29:46: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 524288 (buffer: 0 / 463872)
20:02:21: Capture window 0x00040890 invalid or changing, terminating capture
20:02:25: Total frames encoded: 198807, total frames duplicated: 245 (0.12%)
20:02:25: Total frames rendered: 198726, number of late frames: 14 (0.01%) (it's okay for some frames to be late)
20:02:25: RTMPPublisher::SocketLoop: Graceful loop exit
20:02:25: Average send payload: 7848 bytes, average send interval: 17 ms
20:02:25: Number of times waited to send: 0, Waited for a total of 0 bytes
20:02:25: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
20:02:25: Number of bytes sent: 1642287788
20:02:25:
20:02:25: Profiler time results:
20:02:25:
20:02:25: ==============================================================
20:02:25: video thread frame - [100%] [avg time: 0.384 ms] [children: 17.4%] [unaccounted: 82.6%]
20:02:25: | scene->Preprocess - [0.26%] [avg time: 0.001 ms]
20:02:25: | GPU download and conversion - [17.2%] [avg time: 0.066 ms] [children: 12%] [unaccounted: 5.21%]
20:02:25: | | flush - [8.59%] [avg time: 0.033 ms]
20:02:25: | | CopyResource - [3.13%] [avg time: 0.012 ms]
20:02:25: | | conversion to 4:2:0 - [0.26%] [avg time: 0.001 ms]
20:02:25: Convert444Threads - [100%] [avg time: 0.397 ms] [children: 99.2%] [unaccounted: 0.756%]
20:02:25: | Convert444toNV12 - [99.2%] [avg time: 0.394 ms]
20:02:25: encoder thread frame - [100%] [avg time: 0.765 ms] [children: 1.96%] [unaccounted: 98%]
20:02:25: | sending stuff out - [1.96%] [avg time: 0.015 ms]
20:02:25: ==============================================================
20:02:25:
20:02:25:
20:02:25: Profiler CPU results:
20:02:25:
20:02:25: ==============================================================
20:02:25: video thread frame - [cpu time: avg 0.005 ms, total 1170.01 ms] [avg calls per frame: 1]
20:02:25: | scene->Preprocess - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
20:02:25: | GPU download and conversion - [cpu time: avg 0.001 ms, total 358.804 ms] [avg calls per frame: 1]
20:02:25: | | flush - [cpu time: avg 0.001 ms, total 265.203 ms] [avg calls per frame: 1]
20:02:25: | | CopyResource - [cpu time: avg 0 ms, total 31.2 ms] [avg calls per frame: 1]
20:02:25: | | conversion to 4:2:0 - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
20:02:25: Convert444Threads - [cpu time: avg 0.083 ms, total 33197 ms] [avg calls per frame: 2]
20:02:25: | Convert444toNV12 - [cpu time: avg 0.082 ms, total 32869.4 ms] [avg calls per frame: 2]
20:02:25: encoder thread frame - [cpu time: avg 0.058 ms, total 11637.7 ms] [avg calls per frame: 1]
20:02:25: | sending stuff out - [cpu time: avg 0.007 ms, total 1497.61 ms] [avg calls per frame: 1]
20:02:25: ==============================================================
20:02:25:
20:02:25: =====Stream End: 2014-06-16, 20:02:25=================================================
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
That must have been a bad log (and it was cut off as well, always include the whole log file), because there was very little issues with FPS lowering in that log file:

20:02:25: Total frames rendered: 198726, number of late frames: 14 (0.01%) (it's okay for some frames to be late)

Late frames are what cause low FPS, and as you can see, it almost never happened here.
 

Morder

New Member
Maybe I'm just trying to overachieve again. I'll set the stream to 60 FPS next time, hopefully it will be a lot smoother for faster paced games.

Thanks for your help and time.
 
Top