Hi,
I don't think that this is the first time that someone asked this, but I couldn't find a thread with this sort of problem.
I had trouble recording and streaming properly because every half a second the record/stream froze like it was skipping some frames and this happened even when I recorded with such low bandwidth that you could only see some pixels, still the game was running fine and I really tried every single option there is including other programs like OBS-MP, Shadowplay and XSplit. I also tried all 3 different codec types (x264, NVEnc and Quick Sync) but it didn't work. I analyzed the logs and there were no major problems.
So I eventually found out that this problem only occurs in games that use VSync so turning it off solved the stuttering problem for me but without it there is very much screen tearing going on in my game.
So has anyone figured out how to use VSync while streaming?
System Specs:
Log with VSync (laggy)
I don't think that this is the first time that someone asked this, but I couldn't find a thread with this sort of problem.
I had trouble recording and streaming properly because every half a second the record/stream froze like it was skipping some frames and this happened even when I recorded with such low bandwidth that you could only see some pixels, still the game was running fine and I really tried every single option there is including other programs like OBS-MP, Shadowplay and XSplit. I also tried all 3 different codec types (x264, NVEnc and Quick Sync) but it didn't work. I analyzed the logs and there were no major problems.
So I eventually found out that this problem only occurs in games that use VSync so turning it off solved the stuttering problem for me but without it there is very much screen tearing going on in my game.
So has anyone figured out how to use VSync while streaming?
System Specs:
- I5-4690K
- GTX 790
- 16GB Ram
- Win 7 x64
- OBS v0.656b
- OBS-MP 0.12.0
06:42:05: =====Stream Start: 2015-10-08, 06:42:05===============================================
06:42:05: Multithreaded optimizations: On
06:42:05: Base resolution: 1920x1080
06:42:05: Output resolution: 1280x720
06:42:05: ------------------------------------------
06:42:05: Loading up D3D10 on NVIDIA GeForce GTX 780 (Adapter 1)...
06:42:05: ------------------------------------------
06:42:05: Audio Format: 48000 Hz
06:42:05: ------------------------------------------
06:42:05: Audio Channels: 2 Ch
06:42:05: Playback device Default
06:42:05: ------------------------------------------
06:42:05: Using desktop audio input: Lautsprecher (10- Logitech G930 Headset)
06:42:05: Global Audio time adjust: 0
06:42:05: Using 7.1 surround speaker setup
06:42:05: ------------------------------------------
06:42:05: Audio Encoding: AAC
06:42:05: bitrate: 96
06:42:05: Using graphics capture
06:42:05: Trying to hook process: DarkSoulsII.exe
06:42:05: Scene buffering time set to 400
06:42:05: Using custom x264 settings: "crf=10"
06:42:05: ------------------------------------------
06:42:05: Video Encoding: x264
06:42:05: fps: 60
06:42:05: width: 1280, height: 720
06:42:05: preset: fast
06:42:05: profile: main
06:42:05: keyint: 120
06:42:05: CBR: yes
06:42:05: CFR: yes
06:42:05: max bitrate: 2500
06:42:05: buffer size: 2500
06:42:05: ------------------------------------------
06:42:05: SharedTexCapture hooked
06:42:13: Total frames encoded: 468, total frames duplicated: 3 (0.64%)
06:42:13: Total frames rendered: 500, number of late frames: 1 (0.20%) (it's okay for some frames to be late)
06:42:14:
06:42:14: Profiler time results:
06:42:14:
06:42:14: ==============================================================
06:42:14: video thread frame - [100%] [avg time: 0.508 ms] [children: 21.9%] [unaccounted: 78.1%]
06:42:14: | scene->Preprocess - [0.197%] [avg time: 0.001 ms]
06:42:14: | GPU download and conversion - [21.7%] [avg time: 0.11 ms] [children: 18.7%] [unaccounted: 2.95%]
06:42:14: | | flush - [17.5%] [avg time: 0.089 ms]
06:42:14: | | CopyResource - [0.787%] [avg time: 0.004 ms]
06:42:14: | | conversion to 4:2:0 - [0.394%] [avg time: 0.002 ms]
06:42:14: Convert444Threads - [100%] [avg time: 0.308 ms] [children: 99%] [unaccounted: 0.974%]
06:42:14: | Convert444toNV12 - [99%] [avg time: 0.305 ms]
06:42:14: encoder thread frame - [100%] [avg time: 0.986 ms] [children: 0.71%] [unaccounted: 99.3%]
06:42:14: | sending stuff out - [0.71%] [avg time: 0.007 ms]
06:42:14: ==============================================================
06:42:14:
06:42:14:
06:42:14: Profiler CPU results:
06:42:14:
06:42:14: ==============================================================
06:42:14: video thread frame - [cpu time: avg 0.093 ms, total 46.8 ms] [avg calls per frame: 1]
06:42:14: | scene->Preprocess - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
06:42:14: | GPU download and conversion - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
06:42:14: | | flush - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
06:42:14: | | CopyResource - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
06:42:14: | | conversion to 4:2:0 - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
06:42:14: Convert444Threads - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 2]
06:42:14: | Convert444toNV12 - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 2]
06:42:14: encoder thread frame - [cpu time: avg 0.066 ms, total 31.2 ms] [avg calls per frame: 1]
06:42:14: | sending stuff out - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
06:42:14: ==============================================================
06:42:14:
06:42:14: =====Stream End: 2015-10-08, 06:42:14=================================================
06:42:05: Multithreaded optimizations: On
06:42:05: Base resolution: 1920x1080
06:42:05: Output resolution: 1280x720
06:42:05: ------------------------------------------
06:42:05: Loading up D3D10 on NVIDIA GeForce GTX 780 (Adapter 1)...
06:42:05: ------------------------------------------
06:42:05: Audio Format: 48000 Hz
06:42:05: ------------------------------------------
06:42:05: Audio Channels: 2 Ch
06:42:05: Playback device Default
06:42:05: ------------------------------------------
06:42:05: Using desktop audio input: Lautsprecher (10- Logitech G930 Headset)
06:42:05: Global Audio time adjust: 0
06:42:05: Using 7.1 surround speaker setup
06:42:05: ------------------------------------------
06:42:05: Audio Encoding: AAC
06:42:05: bitrate: 96
06:42:05: Using graphics capture
06:42:05: Trying to hook process: DarkSoulsII.exe
06:42:05: Scene buffering time set to 400
06:42:05: Using custom x264 settings: "crf=10"
06:42:05: ------------------------------------------
06:42:05: Video Encoding: x264
06:42:05: fps: 60
06:42:05: width: 1280, height: 720
06:42:05: preset: fast
06:42:05: profile: main
06:42:05: keyint: 120
06:42:05: CBR: yes
06:42:05: CFR: yes
06:42:05: max bitrate: 2500
06:42:05: buffer size: 2500
06:42:05: ------------------------------------------
06:42:05: SharedTexCapture hooked
06:42:13: Total frames encoded: 468, total frames duplicated: 3 (0.64%)
06:42:13: Total frames rendered: 500, number of late frames: 1 (0.20%) (it's okay for some frames to be late)
06:42:14:
06:42:14: Profiler time results:
06:42:14:
06:42:14: ==============================================================
06:42:14: video thread frame - [100%] [avg time: 0.508 ms] [children: 21.9%] [unaccounted: 78.1%]
06:42:14: | scene->Preprocess - [0.197%] [avg time: 0.001 ms]
06:42:14: | GPU download and conversion - [21.7%] [avg time: 0.11 ms] [children: 18.7%] [unaccounted: 2.95%]
06:42:14: | | flush - [17.5%] [avg time: 0.089 ms]
06:42:14: | | CopyResource - [0.787%] [avg time: 0.004 ms]
06:42:14: | | conversion to 4:2:0 - [0.394%] [avg time: 0.002 ms]
06:42:14: Convert444Threads - [100%] [avg time: 0.308 ms] [children: 99%] [unaccounted: 0.974%]
06:42:14: | Convert444toNV12 - [99%] [avg time: 0.305 ms]
06:42:14: encoder thread frame - [100%] [avg time: 0.986 ms] [children: 0.71%] [unaccounted: 99.3%]
06:42:14: | sending stuff out - [0.71%] [avg time: 0.007 ms]
06:42:14: ==============================================================
06:42:14:
06:42:14:
06:42:14: Profiler CPU results:
06:42:14:
06:42:14: ==============================================================
06:42:14: video thread frame - [cpu time: avg 0.093 ms, total 46.8 ms] [avg calls per frame: 1]
06:42:14: | scene->Preprocess - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
06:42:14: | GPU download and conversion - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
06:42:14: | | flush - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
06:42:14: | | CopyResource - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
06:42:14: | | conversion to 4:2:0 - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
06:42:14: Convert444Threads - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 2]
06:42:14: | Convert444toNV12 - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 2]
06:42:14: encoder thread frame - [cpu time: avg 0.066 ms, total 31.2 ms] [avg calls per frame: 1]
06:42:14: | sending stuff out - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
06:42:14: ==============================================================
06:42:14:
06:42:14: =====Stream End: 2015-10-08, 06:42:14=================================================
Log with VSync (laggy)
06:45:40: =====Stream Start: 2015-10-08, 06:45:40===============================================
06:45:40: Multithreaded optimizations: On
06:45:40: Base resolution: 1920x1080
06:45:40: Output resolution: 1280x720
06:45:40: ------------------------------------------
06:45:40: Loading up D3D10 on NVIDIA GeForce GTX 780 (Adapter 1)...
06:45:40: ------------------------------------------
06:45:40: Audio Format: 48000 Hz
06:45:40: ------------------------------------------
06:45:40: Audio Channels: 2 Ch
06:45:40: Playback device Default
06:45:40: ------------------------------------------
06:45:40: Using desktop audio input: Lautsprecher (10- Logitech G930 Headset)
06:45:40: Global Audio time adjust: 0
06:45:40: Using 7.1 surround speaker setup
06:45:40: ------------------------------------------
06:45:40: Audio Encoding: AAC
06:45:40: bitrate: 96
06:45:40: Using graphics capture
06:45:40: Trying to hook process: DarkSoulsII.exe
06:45:40: Scene buffering time set to 400
06:45:40: Using custom x264 settings: "crf=10"
06:45:40: ------------------------------------------
06:45:40: Video Encoding: x264
06:45:40: fps: 60
06:45:40: width: 1280, height: 720
06:45:40: preset: fast
06:45:40: profile: main
06:45:40: keyint: 120
06:45:40: CBR: yes
06:45:40: CFR: yes
06:45:40: max bitrate: 2500
06:45:40: buffer size: 2500
06:45:40: ------------------------------------------
06:45:40: SharedTexCapture hooked
06:45:57: Total frames encoded: 977, total frames duplicated: 4 (0.41%)
06:45:57: Total frames rendered: 1008, number of late frames: 2 (0.20%) (it's okay for some frames to be late)
06:45:57:
06:45:57: Profiler time results:
06:45:57:
06:45:57: ==============================================================
06:45:57: video thread frame - [100%] [avg time: 0.924 ms] [children: 46.5%] [unaccounted: 53.5%]
06:45:57: | scene->Preprocess - [0.108%] [avg time: 0.001 ms]
06:45:57: | GPU download and conversion - [46.4%] [avg time: 0.429 ms] [children: 37.4%] [unaccounted: 8.98%]
06:45:57: | | flush - [36.7%] [avg time: 0.339 ms]
06:45:57: | | CopyResource - [0.541%] [avg time: 0.005 ms]
06:45:57: | | conversion to 4:2:0 - [0.216%] [avg time: 0.002 ms]
06:45:57: Convert444Threads - [100%] [avg time: 0.327 ms] [children: 98.2%] [unaccounted: 1.83%]
06:45:57: | Convert444toNV12 - [98.2%] [avg time: 0.321 ms]
06:45:57: encoder thread frame - [100%] [avg time: 0.827 ms] [children: 0.726%] [unaccounted: 99.3%]
06:45:57: | sending stuff out - [0.726%] [avg time: 0.006 ms]
06:45:57: ==============================================================
06:45:57:
06:45:57:
06:45:57: Profiler CPU results:
06:45:57:
06:45:57: ==============================================================
06:45:57: video thread frame - [cpu time: avg 0.03 ms, total 31.2 ms] [avg calls per frame: 1]
06:45:57: | scene->Preprocess - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
06:45:57: | GPU download and conversion - [cpu time: avg 0.015 ms, total 15.6 ms] [avg calls per frame: 1]
06:45:57: | | flush - [cpu time: avg 0.015 ms, total 15.6 ms] [avg calls per frame: 1]
06:45:57: | | CopyResource - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
06:45:57: | | conversion to 4:2:0 - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
06:45:57: Convert444Threads - [cpu time: avg 0.135 ms, total 265.201 ms] [avg calls per frame: 2]
06:45:57: | Convert444toNV12 - [cpu time: avg 0.127 ms, total 249.601 ms] [avg calls per frame: 2]
06:45:57: encoder thread frame - [cpu time: avg 0.079 ms, total 78 ms] [avg calls per frame: 1]
06:45:57: | sending stuff out - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
06:45:57: ==============================================================
06:45:57:
06:45:57: =====Stream End: 2015-10-08, 06:45:57=================================================
06:45:40: Multithreaded optimizations: On
06:45:40: Base resolution: 1920x1080
06:45:40: Output resolution: 1280x720
06:45:40: ------------------------------------------
06:45:40: Loading up D3D10 on NVIDIA GeForce GTX 780 (Adapter 1)...
06:45:40: ------------------------------------------
06:45:40: Audio Format: 48000 Hz
06:45:40: ------------------------------------------
06:45:40: Audio Channels: 2 Ch
06:45:40: Playback device Default
06:45:40: ------------------------------------------
06:45:40: Using desktop audio input: Lautsprecher (10- Logitech G930 Headset)
06:45:40: Global Audio time adjust: 0
06:45:40: Using 7.1 surround speaker setup
06:45:40: ------------------------------------------
06:45:40: Audio Encoding: AAC
06:45:40: bitrate: 96
06:45:40: Using graphics capture
06:45:40: Trying to hook process: DarkSoulsII.exe
06:45:40: Scene buffering time set to 400
06:45:40: Using custom x264 settings: "crf=10"
06:45:40: ------------------------------------------
06:45:40: Video Encoding: x264
06:45:40: fps: 60
06:45:40: width: 1280, height: 720
06:45:40: preset: fast
06:45:40: profile: main
06:45:40: keyint: 120
06:45:40: CBR: yes
06:45:40: CFR: yes
06:45:40: max bitrate: 2500
06:45:40: buffer size: 2500
06:45:40: ------------------------------------------
06:45:40: SharedTexCapture hooked
06:45:57: Total frames encoded: 977, total frames duplicated: 4 (0.41%)
06:45:57: Total frames rendered: 1008, number of late frames: 2 (0.20%) (it's okay for some frames to be late)
06:45:57:
06:45:57: Profiler time results:
06:45:57:
06:45:57: ==============================================================
06:45:57: video thread frame - [100%] [avg time: 0.924 ms] [children: 46.5%] [unaccounted: 53.5%]
06:45:57: | scene->Preprocess - [0.108%] [avg time: 0.001 ms]
06:45:57: | GPU download and conversion - [46.4%] [avg time: 0.429 ms] [children: 37.4%] [unaccounted: 8.98%]
06:45:57: | | flush - [36.7%] [avg time: 0.339 ms]
06:45:57: | | CopyResource - [0.541%] [avg time: 0.005 ms]
06:45:57: | | conversion to 4:2:0 - [0.216%] [avg time: 0.002 ms]
06:45:57: Convert444Threads - [100%] [avg time: 0.327 ms] [children: 98.2%] [unaccounted: 1.83%]
06:45:57: | Convert444toNV12 - [98.2%] [avg time: 0.321 ms]
06:45:57: encoder thread frame - [100%] [avg time: 0.827 ms] [children: 0.726%] [unaccounted: 99.3%]
06:45:57: | sending stuff out - [0.726%] [avg time: 0.006 ms]
06:45:57: ==============================================================
06:45:57:
06:45:57:
06:45:57: Profiler CPU results:
06:45:57:
06:45:57: ==============================================================
06:45:57: video thread frame - [cpu time: avg 0.03 ms, total 31.2 ms] [avg calls per frame: 1]
06:45:57: | scene->Preprocess - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
06:45:57: | GPU download and conversion - [cpu time: avg 0.015 ms, total 15.6 ms] [avg calls per frame: 1]
06:45:57: | | flush - [cpu time: avg 0.015 ms, total 15.6 ms] [avg calls per frame: 1]
06:45:57: | | CopyResource - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
06:45:57: | | conversion to 4:2:0 - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
06:45:57: Convert444Threads - [cpu time: avg 0.135 ms, total 265.201 ms] [avg calls per frame: 2]
06:45:57: | Convert444toNV12 - [cpu time: avg 0.127 ms, total 249.601 ms] [avg calls per frame: 2]
06:45:57: encoder thread frame - [cpu time: avg 0.079 ms, total 78 ms] [avg calls per frame: 1]
06:45:57: | sending stuff out - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
06:45:57: ==============================================================
06:45:57:
06:45:57: =====Stream End: 2015-10-08, 06:45:57=================================================