Question / Help Problem with in game lag on FPS / other games.

Donald8274

New Member
Hello, I want to start off by saying I used to stream frequently with higher settings than I have on OBS now and it was working perfectly with no lag, no frame skipping, ect... About 6 months ago I stopped streaming until this past week. When I was trying to use the exact same settings as before it was telling me that the CPU usage was getting very high any time that I was streaming with the higher settings. I decided to lower the settings to what they are now and the quality is just horrible for streaming in my opinion and I would like to get back to where I was before if possible.

PC:

GPU - NVidia GeForce GTX 760
GPU Memory - 4 GB
RAM - 8 GB
CPU - i5-4670 @ 3.40 Ghz (quad core)

Most recent log file:
Code:
03:25:00: =====Stream Start: 2015-09-08, 03:25:00===============================================
03:25:00:   Multithreaded optimizations: On
03:25:00:   Base resolution: 1920x1080
03:25:00:   Output resolution: 1920x1080
03:25:00: ------------------------------------------
03:25:00: Loading up D3D10 on NVIDIA GeForce GTX 760 (Adapter 1)...
03:25:00: ------------------------------------------
03:25:00: Audio Format: 44100 Hz
03:25:00: ------------------------------------------
03:25:00: Audio Channels: 2 Ch
03:25:00: Playback device Default
03:25:00: ------------------------------------------
03:25:00: Using desktop audio input: Speakers (4- Skullcandy GMX Dolby Transmitter)
03:25:00: Global Audio time adjust: 0
03:25:00: ------------------------------------------
03:25:00: Using auxilary audio input: Microphone (4- Skullcandy GMX Dolby Transmitter)
03:25:00: Mic time offset: 0
03:25:00: ------------------------------------------
03:25:00: Audio Encoding: AAC
03:25:00:     bitrate: 64
03:25:00: ------------------------------------------
03:25:00:     device: Logitech HD Webcam C270,
03:25:00:     device id \\?\usb#vid_046d&pid_0825&mi_00#7&2ae6dd80&1&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
03:25:00:     chosen type: I420, usingFourCC: false, res: 1280x960 - 1280x960, frameIntervals: 333333-2000000
03:25:00:     use buffering: false - 0, fourCC: 'I420'
03:25:00:     audio device: Disable,
03:25:00:     audio device id Disabled,
03:25:00:     audio time offset 0,
03:25:00:
03:25:00: Using directshow input
03:25:00: Using graphics capture
03:25:00: CLRHost:: BrowserRenderHandler::OnPaint failed to create texture
03:25:00: Trying to hook process: SonicGenerations.exe
03:25:00: CLRHost:: Browser 6: Status message:
03:25:00: CLRHost:: BrowserRenderHandler::OnPaint failed to create texture
03:25:00: CLRHost:: BrowserRenderHandler::OnPaint failed to create texture
03:25:00: CLRHost:: BrowserRenderHandler::OnPaint failed to create texture
03:25:00: Scene buffering time set to 400
03:25:00: NVENC internal init finished successfully
03:25:00: CLRHost:: BrowserRenderHandler::OnPaint failed to create texture
03:25:00: CLRHost:: BrowserRenderHandler::OnPaint failed to create texture
03:25:00: NVENC supports 8 h264 presets
03:25:00: CLRHost:: BrowserRenderHandler::OnPaint failed to create texture
03:25:00: ------------------------------------------
03:25:00: Video Encoding: NVENC
03:25:00:     fps: 30
03:25:00:     width: 1920, height: 1080
03:25:00:     preset: streaming
03:25:00:     profile: high
03:25:00:     level: autoselect
03:25:00:     keyint: 60
03:25:00:     CBR: yes
03:25:00:     CFR: yes
03:25:00:     max bitrate: 2500
03:25:00:     avg bitrate: 2500
03:25:00:     buffer size: 2500
03:25:00: ------------------------------------------
03:25:00: CLRHost:: BrowserRenderHandler::OnPaint failed to create texture
03:25:00: CLRHost:: BrowserRenderHandler::OnPaint failed to create texture
03:25:00: CLRHost:: BrowserRenderHandler::OnPaint failed to create texture
03:25:01: Using RTMP service: Twitch
03:25:01:   Server selection: rtmp://live.twitch.tv/app
03:25:01:   Interface: Realtek PCIe GBE Family Controller (ethernet, 1000 mbps)
03:25:02: Completed handshake with rtmp://live.twitch.tv/app in 246 ms.
03:25:02: SO_SNDBUF was at 8192
03:25:02: SO_SNDBUF is now 65536
03:25:03: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 131072 (buffer: 6331 / 327680)
03:25:08: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 262144 (buffer: 0 / 327680)
03:25:09: SharedTexCapture hooked
03:25:12: GraphicsCaptureSource::NewCapture:  eliminating old capture
03:25:12: SharedTexCapture hooked
03:25:24: GraphicsCaptureSource::NewCapture:  eliminating old capture
03:25:24: SharedTexCapture hooked
03:25:28: Audio timestamp for device 'Microphone (4- Skullcandy GMX Dolby Transmitter)' was behind target timestamp by 80
03:25:43: Audio timestamp for device 'Microphone (4- Skullcandy GMX Dolby Transmitter)' was behind target timestamp by 80
03:26:09: Audio timestamp for device 'Microphone (4- Skullcandy GMX Dolby Transmitter)' was behind target timestamp by 90
03:27:05: GraphicsCaptureSource::NewCapture:  eliminating old capture
03:27:05: SharedTexCapture hooked
03:29:01: Capture window 0x00340F8C invalid or changing, terminating capture
03:29:15: SharedTexCapture hooked
03:41:44: Exit signal received, terminating capture
03:42:02: SharedTexCapture hooked
03:42:07: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 524288 (buffer: 0 / 327680)
03:46:59: Exit signal received, terminating capture
03:47:23: SharedTexCapture hooked
04:01:29: Capture window 0x003A0F8C invalid or changing, terminating capture
04:01:50: SharedTexCapture hooked
04:02:24: Audio timestamp for device 'Microphone (4- Skullcandy GMX Dolby Transmitter)' was behind target timestamp by 100
04:08:28: GraphicsCaptureSource::NewCapture:  eliminating old capture
04:08:28: SharedTexCapture hooked
04:13:38: FlushBufferedVideo: Flushing 21 packets over 667 ms
04:13:39: Total frames encoded: 87540, total frames duplicated: 10945 (12.50%)
04:13:39: Number of frames skipped due to encoder lag: 664 (0.76%)
04:13:39: Total frames rendered: 82342, number of late frames: 2841 (3.45%) (it's okay for some frames to be late)
04:13:39: ~RTMPPublisher: Packet flush completed in 134 ms
04:13:39: ~RTMPPublisher: Send thread terminated in 0 ms
04:13:39: RTMPPublisher::SocketLoop: Graceful loop exit
04:13:39: ~RTMPPublisher: Socket thread terminated in 1 ms
04:13:39: Encoder closed
04:13:39: NVENC deinitialized
04:13:39: ~RTMPPublisher: Final socket shutdown completed in 109 ms
04:13:39: Average send payload: 8863 bytes, average send interval: 27 ms
04:13:39: Number of times waited to send: 5, Waited for a total of 18369 bytes
04:13:39: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
04:13:39: Number of bytes sent: 937525795
04:13:39:
04:13:39: Profiler time results:
04:13:39:
04:13:39: ==============================================================
04:13:39: video thread frame - [100%] [avg time: 10.229 ms] [children: 85.7%] [unaccounted: 14.3%]
04:13:39: | scene->Preprocess - [13.5%] [avg time: 1.383 ms]
04:13:39: | GPU download and conversion - [72.2%] [avg time: 7.383 ms] [children: 66%] [unaccounted: 6.16%]
04:13:39: | | flush - [36.2%] [avg time: 3.705 ms]
04:13:39: | | CopyResource - [7.59%] [avg time: 0.776 ms]
04:13:39: | | conversion to 4:2:0 - [22.2%] [avg time: 2.272 ms]
04:13:39: Convert444Threads - [100%] [avg time: 1.632 ms] [children: 99.1%] [unaccounted: 0.919%]
04:13:39: | Convert444toNV12 - [99.1%] [avg time: 1.617 ms]
04:13:39: encoder thread frame - [100%] [avg time: 19.466 ms] [children: 0.319%] [unaccounted: 99.7%]
04:13:39: | sending stuff out - [0.319%] [avg time: 0.062 ms]
04:13:39: ==============================================================
04:13:39:
04:13:39:
04:13:39: Profiler CPU results:
04:13:39:
04:13:39: ==============================================================
04:13:39: video thread frame - [cpu time: avg 1.219 ms, total 100449 ms] [avg calls per frame: 1]
04:13:39: | scene->Preprocess - [cpu time: avg 0.65 ms, total 53539.5 ms] [avg calls per frame: 1]
04:13:39: | GPU download and conversion - [cpu time: avg 0.202 ms, total 16660.9 ms] [avg calls per frame: 1]
04:13:39: | | flush - [cpu time: avg 0.157 ms, total 12979.3 ms] [avg calls per frame: 1]
04:13:39: | | CopyResource - [cpu time: avg 0.013 ms, total 1123.21 ms] [avg calls per frame: 1]
04:13:39: | | conversion to 4:2:0 - [cpu time: avg 0.013 ms, total 1076.41 ms] [avg calls per frame: 1]
04:13:39: Convert444Threads - [cpu time: avg 1.295 ms, total 213331 ms] [avg calls per frame: 2]
04:13:39: | Convert444toNV12 - [cpu time: avg 1.29 ms, total 212411 ms] [avg calls per frame: 2]
04:13:39: encoder thread frame - [cpu time: avg 0.527 ms, total 46191.9 ms] [avg calls per frame: 1]
04:13:39: | sending stuff out - [cpu time: avg 0.03 ms, total 2652.01 ms] [avg calls per frame: 1]
04:13:39: ==============================================================
04:13:39:
04:13:39: =====Stream End: 2015-09-08,

http://www.speedtest.net/result/4647885221.png

If anyone can help me out I would be very appreciative. I'm just frustrated that I'm using lower settings and still getting lag. I'm thinking it's possibly my hardware but if I was streaming fine before then I should be fine now.
 
Last edited:
nvenc is not a good encoder to use for streaming. Its bitrate requirements are far too high.
 
Back
Top