Question / Help Horrible PC Lag While Streaming Simple 8bit Video Game (Any Suggestions?)

traiLZ

New Member
So recently my laptop updated, i'm running windows 10 64bit with 6 gb of ram.
I stream pretty regularly sometimes twice per day and noticed that my laptop lags so bad since the updates and am not really sure why.
I know a little about computers not close to being a tech genius but i understand enough to be able to follow simple instructions or suggestions.
I stream Zelda 2 NES straight from laptop to twitch, nothing fancy just emulator.
My laptop is stock, everything i am using is onboard stuff... I took a look at the log file and noticed a couple things, not sure if its of any importance or not.
Awful audio tears, and terrible pc lag once OBS is streaming.
It didn't use to do this, hopefully a set of eyes could possibly help me get to the bottom of this
I'll attach my log file and paste it:::

14:43:58.992: CPU Name: Intel(R) Core(TM) i3-5015U CPU @ 2.10GHz
14:43:58.992: CPU Speed: 2095MHz
14:43:58.992: Physical Cores: 2, Logical Cores: 4
14:43:58.993: Physical Memory: 6053MB Total, 1855MB Free
14:43:58.993: Windows Version: 10.0 Build 17763 (revision: 253; 64-bit)
14:43:58.993: Running as administrator: false
14:43:58.993: Aero is Enabled (Aero is always on for windows 8 and above)
14:43:58.993: Windows 10 Gaming Features:
14:43:58.993: Game DVR: On
14:43:58.996: Sec. Software Status:
14:43:59.006: Windows Defender Antivirus: enabled (AV)
14:43:59.011: Windows Firewall: enabled (FW)
14:43:59.012: Windows Defender Antivirus: enabled (ASW)
14:43:59.013: Browser Hardware Acceleration: true
14:43:59.013: Portable mode: false
14:43:59.228: OBS 22.0.2 (64-bit, windows)
14:43:59.228: ---------------------------------
14:43:59.229: ---------------------------------
14:43:59.230: audio settings reset:
14:43:59.230: samples per sec: 44100
14:43:59.230: speakers: 2
14:43:59.296: ---------------------------------
14:43:59.296: Initializing D3D11...
14:43:59.296: Available Video Adapters:
14:43:59.301: Adapter 1: Intel(R) HD Graphics 5500
14:43:59.301: Dedicated VRAM: 134217728
14:43:59.301: Shared VRAM: 3174035456
14:43:59.301: output 1: pos={0, 0}, size={1366, 768}, attached=true
14:43:59.310: Loading up D3D11 on adapter Intel(R) HD Graphics 5500 (0)
14:43:59.320: D3D11 loaded successfully, feature level used: 45056
14:44:00.696: ---------------------------------
14:44:00.696: video settings reset:
14:44:00.696: base resolution: 1280x720
14:44:00.696: output resolution: 852x480
14:44:00.696: downscale filter: Bicubic
14:44:00.696: fps: 30/1
14:44:00.696: format: NV12
14:44:00.696: YUV mode: 601/Partial
14:44:00.698: Audio monitoring device:
14:44:00.698: name: Default
14:44:00.698: id: default
14:44:00.698: ---------------------------------
14:44:01.333: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/chrome_elf.dll' not found, loading of module failed
14:44:01.363: [CoreAudio encoder]: CoreAudio AAC encoder not installed on the system or couldn't be loaded
14:44:01.688: [AMF] AMF Test failed due to one or more errors.
14:44:01.688: Failed to initialize module 'enc-amf.dll'
14:44:04.220: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libcef.dll' not found, loading of module failed
14:44:04.454: LoadLibrary failed for '../../obs-plugins/64bit/libEGL.dll': The specified procedure could not be found.
14:44:04.454: (127)
14:44:04.454: Module '../../obs-plugins/64bit/libEGL.dll' not loaded
14:44:04.632: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libGLESv2.dll' not found, loading of module failed
14:44:04.800: [obs-browser]: Version 2.1.5
14:44:04.801: [obs-browser]: Blacklisted device detected, disabling browser source hardware acceleration.
14:44:04.900: LoadLibrary failed for 'nvEncodeAPI64.dll': The specified module could not be found.
14:44:04.900: (126)
14:44:06.228: Couldn't find VLC installation, VLC video source disabled
14:44:06.667: No blackmagic support
14:44:07.880: ---------------------------------
14:44:07.880: Loaded Modules:
14:44:07.882: win-wasapi.dll
14:44:07.882: win-mf.dll
14:44:07.882: win-dshow.dll
14:44:07.882: win-decklink.dll
14:44:07.882: win-capture.dll
14:44:07.882: vlc-video.dll
14:44:07.882: text-freetype2.dll
14:44:07.882: rtmp-services.dll
14:44:07.882: obs-x264.dll
14:44:07.882: obs-vst.dll
14:44:07.882: obs-transitions.dll
14:44:07.882: obs-text.dll
14:44:07.882: obs-qsv11.dll
14:44:07.882: obs-outputs.dll
14:44:07.882: obs-filters.dll
14:44:07.882: obs-ffmpeg.dll
14:44:07.882: obs-browser.dll
14:44:07.882: image-source.dll
14:44:07.882: frontend-tools.dll
14:44:07.882: enc-amf.dll
14:44:07.882: coreaudio-encoder.dll
14:44:07.883: ---------------------------------
14:44:07.883: ==== Startup complete ===============================================
14:44:08.035: All scene data cleared
14:44:08.035: ------------------------------------------------
14:44:08.161: WASAPI: Device 'Speakers / Headphones (Realtek Audio)' initialized
14:44:08.409: WASAPI: Device 'Microphone (Realtek Audio)' initialized
14:44:08.409: [window-capture: 'Zhelper'] update settings:
14:44:08.409: executable: ZHelper.exe
14:44:08.410: [window-capture: 'z2 randomizer'] update settings:
14:44:08.410: executable: fceux.exe
14:44:08.410: [window-capture: 'Wsplit Timer'] update settings:
14:44:08.410: executable: WSplit.exe
14:44:08.411: [window-capture: 'Alttpr SNES9x'] update settings:
14:44:08.411: executable: snes9x-x64.exe
14:44:08.411: [window-capture: 'Turbo Graffix 16'] update settings:
14:44:08.411: executable: pce.exe
14:44:08.412: [window-capture: 'Playstation'] update settings:
14:44:08.412: executable: ePSXe.exe
14:44:08.412: [window-capture: 'Zelda 2 Tracker'] update settings:
14:44:08.412: executable: Zelda 2 Tracker.exe
14:44:08.413: Switched to scene 'Scene'
14:44:08.413: ------------------------------------------------
14:44:08.413: Loaded scenes:
14:44:08.413: - scene 'Scene':
14:44:08.413: - source: 'z2 randomizer' (window_capture)
14:44:08.413: - source: 'Wsplit Timer' (window_capture)
14:44:08.413: - source: 'Alttpr SNES9x' (window_capture)
14:44:08.413: - source: 'Turbo Graffix 16' (window_capture)
14:44:08.413: - source: 'Playstation' (window_capture)
14:44:08.413: - source: 'Zhelper' (window_capture)
14:44:08.413: - source: 'Zelda 2 Tracker' (window_capture)
14:44:08.413: ------------------------------------------------
14:44:08.442: adding 23 milliseconds of audio buffering, total audio buffering is now 23 milliseconds
14:44:08.783: CalculateFileHash: Failed to open file 'C:\Users\traiLZ\AppData\Roaming\obs-studio\updates\whatsnew.json':
14:44:10.101: adding 23 milliseconds of audio buffering, total audio buffering is now 46 milliseconds
14:44:30.189: adding 46 milliseconds of audio buffering, total audio buffering is now 92 milliseconds
14:44:52.643: ---------------------------------
14:44:52.643: [x264 encoder: 'simple_h264_stream'] preset: veryfast
14:44:52.643: [x264 encoder: 'simple_h264_stream'] settings:
14:44:52.643: rate_control: CBR
14:44:52.643: bitrate: 1200
14:44:52.643: buffer size: 1200
14:44:52.643: crf: 0
14:44:52.643: fps_num: 30
14:44:52.643: fps_den: 1
14:44:52.643: width: 852
14:44:52.643: height: 480
14:44:52.643: keyint: 60
14:44:52.643:
14:44:52.643: [x264 encoder: 'simple_h264_stream'] custom settings: scenecut=0
14:44:52.656: ---------------------------------
14:44:52.656: [FFmpeg aac encoder: 'simple_aac'] bitrate: 160, channels: 2, channel_layout: 3
14:44:52.656:
14:44:52.658: [rtmp stream: 'simple_stream'] Connecting to RTMP URL rtmp://live-ord.twitch.tv/app...
14:44:52.692: [rtmp stream: 'simple_stream'] Interface: Intel(R) Dual Band Wireless-AC 3160 (802.11, 54 mbps)
14:44:53.573: [rtmp stream: 'simple_stream'] Connection to rtmp://live-ord.twitch.tv/app successful
14:44:53.583: ==== Streaming Start ===============================================
16:04:30.140: [rtmp stream: 'simple_stream'] User stopped the stream
16:04:30.141: Output 'simple_stream': stopping
16:04:30.141: Output 'simple_stream': Total frames output: 140996 (143200 attempted)
16:04:30.141: Output 'simple_stream': Total drawn frames: 110299 (143324 attempted)
16:04:30.141: Output 'simple_stream': Number of lagged frames due to rendering lag/stalls: 33025 (23.0%)
16:04:30.141: Output 'simple_stream': Number of dropped frames due to insufficient bandwidth/connection stalls: 2204 (1.5%)
16:04:30.143: Video stopped, number of skipped frames due to encoding lag: 1996/143292 (1.4%)
16:04:30.154: ==== Streaming Stop ================================================
16:11:25.558: ==== Shutting down ==================================================
16:11:25.587: Switched to scene '(null)'
16:11:25.606: WASAPI: Device 'Speakers / Headphones (Realtek Audio)' Terminated
16:11:25.621: WASAPI: Device 'Microphone (Realtek Audio)' Terminated
16:11:25.639: All scene data cleared
16:11:25.639: ------------------------------------------------
16:11:25.831: Freeing OBS context data
16:11:25.870: [Scripting] Total detached callbacks: 0
16:11:25.937: == Profiler Results =============================
16:11:25.937: run_program_init: 14430.9 ms
16:11:25.937: ┣OBSApp::AppInit: 195.809 ms
16:11:25.937: ┃ ┗OBSApp::InitLocale: 27.276 ms
16:11:25.937: ┗OBSApp::OBSInit: 14172.9 ms
16:11:25.937: ┣obs_startup: 20.928 ms
16:11:25.937: ┗OBSBasic::OBSInit: 9551.6 ms
16:11:25.937: ┣OBSBasic::InitBasicConfig: 0.852 ms
16:11:25.937: ┣OBSBasic::ResetAudio: 0.295 ms
16:11:25.937: ┣OBSBasic::ResetVideo: 1468.16 ms
16:11:25.937: ┣OBSBasic::InitOBSCallbacks: 0.009 ms
16:11:25.937: ┣OBSBasic::InitHotkeys: 0.065 ms
16:11:25.937: ┣obs_load_all_modules: 7181.65 ms
16:11:25.937: ┃ ┣obs_init_module(coreaudio-encoder.dll): 6.588 ms
16:11:25.937: ┃ ┣obs_init_module(enc-amf.dll): 169.657 ms
16:11:25.937: ┃ ┣obs_init_module(frontend-tools.dll): 21.292 ms
16:11:25.937: ┃ ┣obs_init_module(image-source.dll): 0.012 ms
16:11:25.937: ┃ ┣obs_init_module(obs-browser.dll): 0.411 ms
16:11:25.937: ┃ ┣obs_init_module(obs-ffmpeg.dll): 1.566 ms
16:11:25.937: ┃ ┃ ┗nvenc_check: 1.527 ms
16:11:25.937: ┃ ┣obs_init_module(obs-filters.dll): 0.052 ms
16:11:25.937: ┃ ┣obs_init_module(obs-outputs.dll): 0.032 ms
16:11:25.937: ┃ ┣obs_init_module(obs-qsv11.dll): 184.982 ms
16:11:25.937: ┃ ┣obs_init_module(obs-text.dll): 1.41 ms
16:11:25.937: ┃ ┣obs_init_module(obs-transitions.dll): 0.008 ms
16:11:25.937: ┃ ┣obs_init_module(obs-vst.dll): 0.003 ms
16:11:25.937: ┃ ┣obs_init_module(obs-x264.dll): 0.001 ms
16:11:25.937: ┃ ┣obs_init_module(rtmp-services.dll): 39.227 ms
16:11:25.937: ┃ ┣obs_init_module(text-freetype2.dll): 0.157 ms
16:11:25.937: ┃ ┣obs_init_module(vlc-video.dll): 0.137 ms
16:11:25.937: ┃ ┣obs_init_module(win-capture.dll): 0.377 ms
16:11:25.937: ┃ ┣obs_init_module(win-decklink.dll): 21.92 ms
16:11:25.937: ┃ ┣obs_init_module(win-dshow.dll): 6.304 ms
16:11:25.937: ┃ ┣obs_init_module(win-mf.dll): 0 ms
16:11:25.937: ┃ ┣obs_init_module(win-wasapi.dll): 0.026 ms
16:11:25.937: ┃ ┗reset_win32_symbol_paths: 0.435 ms
16:11:25.937: ┣OBSBasic::ResetOutputs: 0.78 ms
16:11:25.937: ┣OBSBasic::CreateHotkeys: 0.109 ms
16:11:25.938: ┣OBSBasic::InitService: 85.533 ms
16:11:25.938: ┣OBSBasic::InitPrimitives: 0.792 ms
16:11:25.938: ┗OBSBasic::Load: 472.816 ms
16:11:25.938: obs_hotkey_thread(25 ms): min=0.006 ms, median=0.048 ms, max=38.509 ms, 99th percentile=2.285 ms, 99.9975% below 25 ms
16:11:25.938: audio_thread(Audio): min=0 ms, median=1.362 ms, max=255.57 ms, 99th percentile=12.348 ms
16:11:25.938: ┗receive_audio: min=0.002 ms, median=1.204 ms, max=255.332 ms, 99th percentile=10.004 ms
16:11:25.938: ┣buffer_audio: min=0.001 ms, median=0.002 ms, max=12.645 ms, 99th percentile=0.023 ms
16:11:25.938: ┗do_encode: min=0.099 ms, median=1.191 ms, max=60.468 ms, 99th percentile=9.96 ms
16:11:25.938: ┗encode(simple_aac): min=0.092 ms, median=1.116 ms, max=60.387 ms, 99th percentile=9.53 ms
16:11:25.938: obs_graphics_thread(33.3333 ms): min=0.118 ms, median=41.696 ms, max=471.279 ms, 99th percentile=66.289 ms, 10.6352% below 33.333 ms
16:11:25.938: ┣tick_sources: min=0.001 ms, median=39.492 ms, max=192.503 ms, 99th percentile=63.316 ms
16:11:25.938: ┣output_frame: min=0.092 ms, median=0.768 ms, max=371.172 ms, 99th percentile=2.333 ms
16:11:25.938: ┃ ┣gs_context(video->graphics): min=0.092 ms, median=0.384 ms, max=371.171 ms, 99th percentile=1.499 ms
16:11:25.938: ┃ ┃ ┣render_video: min=0.016 ms, median=0.274 ms, max=370.691 ms, 99th percentile=0.977 ms
16:11:25.938: ┃ ┃ ┃ ┣render_main_texture: min=0.01 ms, median=0.149 ms, max=7.088 ms, 99th percentile=0.592 ms
16:11:25.938: ┃ ┃ ┃ ┣render_output_texture: min=0.003 ms, median=0.032 ms, max=370.444 ms, 99th percentile=0.16 ms, 0.88894 calls per parent call
16:11:25.938: ┃ ┃ ┃ ┣render_convert_texture: min=0.002 ms, median=0.03 ms, max=3.51 ms, 99th percentile=0.154 ms, 0.88894 calls per parent call
16:11:25.938: ┃ ┃ ┃ ┗stage_output_texture: min=0 ms, median=0.051 ms, max=3.078 ms, 99th percentile=0.188 ms, 0.88894 calls per parent call
16:11:25.938: ┃ ┃ ┣gs_flush: min=0.053 ms, median=0.086 ms, max=35.643 ms, 99th percentile=0.597 ms
16:11:25.938: ┃ ┃ ┗download_frame: min=0 ms, median=0.014 ms, max=2.305 ms, 99th percentile=0.054 ms, 0.88894 calls per parent call
16:11:25.938: ┃ ┗output_video_data: min=0.001 ms, median=0.372 ms, max=6.337 ms, 99th percentile=1.181 ms, 0.888908 calls per parent call
16:11:25.938: ┗render_displays: min=0 ms, median=1.095 ms, max=14.595 ms, 99th percentile=4.666 ms
16:11:25.938: video_thread(video): min=0.003 ms, median=1.525 ms, max=2001.84 ms, 99th percentile=73.333 ms
16:11:25.938: ┗receive_video: min=0.531 ms, median=1.331 ms, max=2001.15 ms, 99th percentile=57.33 ms, 1.31639 calls per parent call
16:11:25.938: ┗do_encode: min=0.53 ms, median=1.328 ms, max=2001.15 ms, 99th percentile=57.329 ms
16:11:25.939: ┗encode(simple_h264_stream): min=0.512 ms, median=1.289 ms, max=2001.13 ms, 99th percentile=57.31 ms
16:11:25.939: =================================================
16:11:25.939: == Profiler Time Between Calls ==================
16:11:25.939: obs_hotkey_thread(25 ms): min=24.061 ms, median=25.988 ms, max=146.282 ms, 11.5401% within ±2% of 25 ms (0.158152% lower, 88.3018% higher)
16:11:25.939: obs_graphics_thread(33.3333 ms): min=18.508 ms, median=41.727 ms, max=471.306 ms, 9.74373% within ±2% of 33.333 ms (2.53287% lower, 87.7234% higher)
16:11:25.939: =================================================
16:11:27.628: Number of memory leaks: 0
 

Attachments

  • 2019-01-21 14-43-54.txt
    14.3 KB · Views: 7

traiLZ

New Member
while streaming I opened Task Manager and my CPU is at 100%
this is a crazy question but I prematurely ordered 16gb of ram to upgrade my laptop.
Will this help? I didn't used to have this problem, is there a setting or something I can do to fix?
 

Zidakuh

Member
RAM will not help with high CPU usage, only a better CPU will help with that.
16:04:30.141: Output 'simple_stream': Number of lagged frames due to rendering lag/stalls: 33025 (23.0%)
You seem to be somewhat overworking your GPU.
Make sure GPU usage is at about 95% or lower, or OBS will not have enough headroom to render the videofeed.
16:04:30.141: Output 'simple_stream': Number of dropped frames due to insufficient bandwidth/connection stalls: 2204 (1.5%)
Your bandwith is sligthly peaked. Try and lower the bitrate just a tiny bit. (about 100-200kbps should be fine)
16:04:30.143: Video stopped, number of skipped frames due to encoding lag: 1996/143292 (1.4%)
This could indicate a "too slow" CPU for live encoding. Be aware that emulatirs take a considerable amout of CPU power by itself.
If you have NVENC, Intel QuickSync or AMD VCE available, I will recommemd that, though you might end up with slight blocking artifacts.
 

traiLZ

New Member
Thank You So Much Zidakuh!
your advice helped me out so much, you don't even know hahaha

some way, some how by lowering video bitrate OBS went down a whole heck of a lot.
I forgot to check the numbers on the application itself but the total CPU went from 100% all the way to 65%
I am not sure how to set my GPU to use only 95%
I went setting\output\ <<< in streaming options I set video bitrate to 200 (it was set to 1200 lol)
Do I change the GPU% settings in OBS or is that something I do within windows 10?
 

Zidakuh

Member
GPU percentage can't be set in OBS, but is set by enabling V-sync or a framerate limiter in the game you play. But since you play using emulators I don't think that is an option.
Also, 200kbps will definitely not look too good, maybe set it to around 500 or 700, a good sweetspot.
 

traiLZ

New Member
You have been such a huge help, thank you so so much :)
now I gotta figure out what to do with this 16gb lol. My memory in task manager was at like 65% so it wont hurt.
There is no way that adding it will hurt anything, but I do now understand why it was weighing heavy on my CPU.
Thanks for all the good info!
 
Top