Bug Report Extreme mouse acceleratoin

Ayyylias

New Member
Hello,

I have been using OBS to stream Minecraft (don't judge :) ) for quite a while now, but for some time now I have been noticing some kinds of mouse acceleration when playing while streaming. it usually occurs when my computer is turned on for a while and my stream has been running for a while my mouse input starts to act very strange. it doesn't always happen but when it does it will usually re-occur after I restart my computer. There are barely any background tasks running on my computer and the issue only happens when I am streaming with OBS.

Specs:
I7 4790K, GTX960 (4GB), 24GB ram, Intel 530Series 240GB SSD
But I have also heard of this issue on a I7 6700HQ with a GTX960M, which leads me to believe this issue is not hardware bound.

My hardware seems to be handling the stream fine since my CPU is around 30% all the time and the GPU is around 50% most of the time. (memory is fine too of course)

The issue happens both when I stream with QSV and with NVENC (since I really fancy hardware encoding over software due to it's reduced stress on my hardware.)

I have done some testing and it happens pretty much all the time but it's a lot worse when I am holding/clicking one of my mouse buttons (it sometimes makes me spin a full 180degrees). it usually also causes a lot of frame time spikes in my game (for no apparent reason as all of my hardware seems to have more than enough headroom)

Results:
(I will replicate this issue when I am done with dinner and post the logs)
 

Ayyylias

New Member
Here is the log file:
19:40:32.140: CPU Name: Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz
19:40:32.140: CPU Speed: 3999MHz
19:40:32.140: Physical Cores: 4, Logical Cores: 8
19:40:32.140: Physical Memory: 24464MB Total, 22060MB Free
19:40:32.140: Windows Version: 10.0 Build 15063 (revision: 296; 64-bit)
19:40:32.140: Running as administrator: false
19:40:32.140: Aero is Enabled (Aero is always on for windows 8 and above)
19:40:32.140: Portable mode: false
19:40:32.150: OBS 19.0.2 (64bit, windows)
19:40:32.150: ---------------------------------
19:40:32.153: ---------------------------------
19:40:32.153: audio settings reset:
19:40:32.153: samples per sec: 48000
19:40:32.153: speakers: 2
19:40:32.155: ---------------------------------
19:40:32.155: Initializing D3D11...
19:40:32.155: Available Video Adapters:
19:40:32.156: Adapter 1: NVIDIA GeForce GTX 960
19:40:32.156: Dedicated VRAM: 4260036608
19:40:32.156: Shared VRAM: 4236347392
19:40:32.156: output 1: pos={0, 0}, size={1920, 1080}, attached=true
19:40:32.156: output 2: pos={1920, 0}, size={1920, 1080}, attached=true
19:40:32.156: Adapter 2: Intel(R) HD Graphics 4600
19:40:32.156: Dedicated VRAM: 117964800
19:40:32.156: Shared VRAM: 2147483648
19:40:32.158: Loading up D3D11 on adapter NVIDIA GeForce GTX 960 (0)
19:40:32.192: D3D11 loaded successfully, feature level used: 45056
19:40:32.760: ---------------------------------
19:40:32.760: video settings reset:
19:40:32.760: base resolution: 1920x1080
19:40:32.760: output resolution: 1920x1080
19:40:32.760: downscale filter: Bilinear
19:40:32.760: fps: 60/1
19:40:32.760: format: NV12
19:40:32.761: Audio monitoring device:
19:40:32.761: name: Default
19:40:32.761: id: default
19:40:32.761: ---------------------------------
19:40:32.763: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/chrome_elf.dll' not found, loading of module failed
19:40:32.766: [CoreAudio encoder]: CoreAudio AAC encoder not installed on the system or couldn't be loaded
19:40:32.777: [AMF] Encountered Exception during AMF initialization: Unable to load 'amfrt64.dll', error code 126.
19:40:32.777: Failed to initialize module 'enc-amf.dll'
19:40:32.786: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libcef.dll' not found, loading of module failed
19:40:32.786: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libEGL.dll' not found, loading of module failed
19:40:32.786: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libGLESv2.dll' not found, loading of module failed
19:40:32.787: Failed to load 'en-US' text for module: 'obs-browser.dll'
19:40:32.787: [browser_source: 'Version: 1.29.0']
19:40:32.791: NVENC supported
19:40:32.825: Couldn't find VLC installation, VLC video source disabled
19:40:32.837: No blackmagic support
19:40:33.065: ---------------------------------
19:40:33.065: Loaded Modules:
19:40:33.065: win-wasapi.dll
19:40:33.065: win-mf.dll
19:40:33.065: win-dshow.dll
19:40:33.065: win-decklink.dll
19:40:33.065: win-capture.dll
19:40:33.065: vlc-video.dll
19:40:33.065: text-freetype2.dll
19:40:33.065: rtmp-services.dll
19:40:33.065: obs-x264.dll
19:40:33.065: obs-vst.dll
19:40:33.065: obs-transitions.dll
19:40:33.065: obs-text.dll
19:40:33.065: obs-qsv11.dll
19:40:33.065: obs-outputs.dll
19:40:33.065: obs-filters.dll
19:40:33.066: obs-ffmpeg.dll
19:40:33.066: obs-browser.dll
19:40:33.066: image-source.dll
19:40:33.066: frontend-tools.dll
19:40:33.066: enc-amf.dll
19:40:33.066: coreaudio-encoder.dll
19:40:33.066: ==== Startup complete ===============================================
19:40:33.078: All scene data cleared
19:40:33.078: ------------------------------------------------
19:40:33.122: WASAPI: Device 'Z5500 (High Definition Audio-apparaat)' initialized
19:40:33.130: WASAPI: Device 'Microfoon van hoofdtelefoon (Jabra BIZ 2400)' initialized
19:40:33.156: adding 21 milliseconds of audio buffering, total audio buffering is now 21 milliseconds
19:40:33.409: Switched to scene 'Screencap'
19:40:33.409: ------------------------------------------------
19:40:33.410: Loaded scenes:
19:40:33.410: - scene 'Screencap':
19:40:33.410: - source: 'Display Capture 3' (monitor_capture)
19:40:33.410: - scene 'Minecraft':
19:40:33.410: - source: 'Game Capture' (game_capture)
19:40:33.410: - source: 'Tekst (GDI+)' (text_gdiplus)
19:40:33.410: - source: 'Window Capture' (window_capture)
19:40:33.410: ------------------------------------------------
19:40:39.344: adding 21 milliseconds of audio buffering, total audio buffering is now 42 milliseconds
19:40:42.148: [qsv encoder: 'simple_h264_stream'] settings:
19:40:42.148: rate_control: CBR
19:40:42.148: target_bitrate: 10000
19:40:42.148: fps_num: 60
19:40:42.148: fps_den: 1
19:40:42.148: width: 1920
19:40:42.148: height: 1080
19:40:42.148: [qsv encoder: 'simple_h264_stream'] debug info:
19:40:42.156: impl: D3D11
19:40:42.156: surf: D3D11
19:40:42.191: m_nSurfNum: 16
19:40:42.205: m_nTaskPool: 4
19:40:42.205: major: 1
19:40:42.205: minor: 20
19:40:42.209: [Media Foundation AAC: 'simple_aac']: encoder created
19:40:42.209: bitrate: 160
19:40:42.209: channels: 2
19:40:42.209: sample rate: 48000
19:40:42.209: bits-per-sample: 16
19:40:42.209:
19:40:42.210: [rtmp stream: 'simple_stream'] Connecting to RTMP URL rtmp://192.168.2.242/stream...
19:40:42.212: [rtmp stream: 'simple_stream'] Interface: Intel(R) Ethernet Connection (2) I218-V (ethernet, 1000 mbps)
19:40:42.348: [rtmp stream: 'simple_stream'] Connection to rtmp://192.168.2.242/stream successful
19:40:42.349: [rtmp stream: 'simple_stream'] New socket loop enabled by user
19:40:42.349: [rtmp stream: 'simple_stream'] Low latency mode enabled by user
19:40:42.353: ==== Streaming Start ===============================================
19:46:45.105: User switched to scene 'Minecraft'
19:46:45.206: User switched to scene 'Screencap'
19:46:45.530: User switched to scene 'Minecraft'
19:46:45.883: User switched to scene 'Screencap'
19:46:46.165: User switched to scene 'Minecraft'
19:46:46.178: [game-capture: 'Game Capture'] attempting to hook fullscreen process: javaw.exe
19:46:46.182: [game-capture: 'Game Capture'] using helper (compatibility hook)
19:46:46.184: [game-capture: 'Game Capture'] hook not loaded yet, retrying..
19:46:46.697: User switched to scene 'Screencap'
19:46:47.003: User switched to scene 'Minecraft'
19:46:47.011: [game-capture: 'Game Capture'] attempting to hook fullscreen process: javaw.exe
19:46:47.018: [game-capture: 'Game Capture'] gl memory capture successful
19:46:47.029: [game-capture: 'Game Capture'] memory capture successful
19:49:09.068: [game-capture: 'Game Capture'] capture window no longer exists, terminating capture
19:49:09.070: [game-capture: 'Game Capture'] capture stopped
19:49:09.309: User switched to scene 'Screencap'
19:49:22.281: [rtmp stream: 'simple_stream'] User stopped the stream
19:49:22.368: socket_thread_windows: Normal exit
19:49:22.368: Output 'simple_stream': stopping
19:49:22.369: Output 'simple_stream': Total encoded frames: 30638
19:49:22.369: Output 'simple_stream': Total drawn frames: 31210
19:49:22.369: Output 'simple_stream': Number of lagged frames due to rendering lag/stalls: 20 (0.1%)
19:49:22.369: [rtmp stream: 'simple_stream'] Freeing 9 remaining packets
19:49:22.372: ==== Streaming Stop ================================================
19:49:43.130: ---------------------------------
19:49:43.130: video settings reset:
19:49:43.130: base resolution: 1920x1080
19:49:43.130: output resolution: 1920x1080
19:49:43.130: downscale filter: Bilinear
19:49:43.130: fps: 60/1
19:49:43.130: format: NV12
19:49:43.146: Settings changed (advanced)
19:49:43.146: ------------------------------------------------
19:49:44.798: [qsv encoder: 'simple_h264_stream'] settings:
19:49:44.798: rate_control: CBR
19:49:44.798: target_bitrate: 10000
19:49:44.798: fps_num: 60
19:49:44.798: fps_den: 1
19:49:44.798: width: 1920
19:49:44.798: height: 1080
19:49:44.798: [qsv encoder: 'simple_h264_stream'] debug info:
19:49:44.804: impl: D3D11
19:49:44.804: surf: D3D11
19:49:44.835: m_nSurfNum: 16
19:49:44.836: m_nTaskPool: 4
19:49:44.836: major: 1
19:49:44.836: minor: 20
19:49:44.836: [Media Foundation AAC: 'simple_aac']: encoder created
19:49:44.836: bitrate: 160
19:49:44.836: channels: 2
19:49:44.836: sample rate: 48000
19:49:44.836: bits-per-sample: 16
19:49:44.836:
19:49:44.836: [rtmp stream: 'simple_stream'] Connecting to RTMP URL rtmp://192.168.2.242/stream...
19:49:44.837: [rtmp stream: 'simple_stream'] Interface: Intel(R) Ethernet Connection (2) I218-V (ethernet, 1000 mbps)
19:49:44.929: [rtmp stream: 'simple_stream'] Connection to rtmp://192.168.2.242/stream successful
19:49:44.931: ==== Streaming Start ===============================================

This is very hard to show on video but at 0:10 in this video my mouse jumped to the bottom left corner a bit. The issue happens both in Fullscreen and in Windowed, when in fullscreen I am using a gamecapture source to capture.

 

Sapiens

Forum Moderator
Enable vsync or the FPS limiter option in Minecraft and test at something like 60 FPS. Any improvement?
 

Ayyylias

New Member
Enable vsync or the FPS limiter option in Minecraft and test at something like 60 FPS. Any improvement?
Here are the results(I'm sorry about the data on this issue being this hard to understand.)

20:07:40.090: CPU Name: Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz
20:07:40.091: CPU Speed: 3999MHz
20:07:40.091: Physical Cores: 4, Logical Cores: 8
20:07:40.091: Physical Memory: 24464MB Total, 20125MB Free
20:07:40.091: Windows Version: 10.0 Build 15063 (revision: 296; 64-bit)
20:07:40.091: Running as administrator: false
20:07:40.091: Aero is Enabled (Aero is always on for windows 8 and above)
20:07:40.091: Portable mode: false
20:07:40.100: OBS 19.0.2 (64bit, windows)
20:07:40.100: ---------------------------------
20:07:40.104: ---------------------------------
20:07:40.104: audio settings reset:
20:07:40.104: samples per sec: 48000
20:07:40.104: speakers: 2
20:07:40.105: ---------------------------------
20:07:40.105: Initializing D3D11...
20:07:40.105: Available Video Adapters:
20:07:40.107: Adapter 1: NVIDIA GeForce GTX 960
20:07:40.107: Dedicated VRAM: 4260036608
20:07:40.107: Shared VRAM: 4236347392
20:07:40.107: output 1: pos={0, 0}, size={1920, 1080}, attached=true
20:07:40.107: output 2: pos={1920, 0}, size={1920, 1080}, attached=true
20:07:40.107: Adapter 2: Intel(R) HD Graphics 4600
20:07:40.107: Dedicated VRAM: 117964800
20:07:40.107: Shared VRAM: 2147483648
20:07:40.108: Loading up D3D11 on adapter NVIDIA GeForce GTX 960 (0)
20:07:40.142: D3D11 loaded successfully, feature level used: 45056
20:07:40.803: ---------------------------------
20:07:40.803: video settings reset:
20:07:40.803: base resolution: 1920x1080
20:07:40.803: output resolution: 1920x1080
20:07:40.803: downscale filter: Bilinear
20:07:40.803: fps: 60/1
20:07:40.803: format: NV12
20:07:40.804: Audio monitoring device:
20:07:40.804: name: Default
20:07:40.804: id: default
20:07:40.805: ---------------------------------
20:07:40.806: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/chrome_elf.dll' not found, loading of module failed
20:07:40.807: [CoreAudio encoder]: CoreAudio AAC encoder not installed on the system or couldn't be loaded
20:07:40.808: [AMF] Encountered Exception during AMF initialization: Unable to load 'amfrt64.dll', error code 126.
20:07:40.808: Failed to initialize module 'enc-amf.dll'
20:07:40.815: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libcef.dll' not found, loading of module failed
20:07:40.816: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libEGL.dll' not found, loading of module failed
20:07:40.816: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libGLESv2.dll' not found, loading of module failed
20:07:40.817: Failed to load 'en-US' text for module: 'obs-browser.dll'
20:07:40.817: [browser_source: 'Version: 1.29.0']
20:07:40.820: NVENC supported
20:07:40.835: Couldn't find VLC installation, VLC video source disabled
20:07:40.841: No blackmagic support
20:07:41.404: ---------------------------------
20:07:41.404: Loaded Modules:
20:07:41.404: win-wasapi.dll
20:07:41.404: win-mf.dll
20:07:41.404: win-dshow.dll
20:07:41.404: win-decklink.dll
20:07:41.404: win-capture.dll
20:07:41.404: vlc-video.dll
20:07:41.404: text-freetype2.dll
20:07:41.404: rtmp-services.dll
20:07:41.404: obs-x264.dll
20:07:41.404: obs-vst.dll
20:07:41.404: obs-transitions.dll
20:07:41.404: obs-text.dll
20:07:41.404: obs-qsv11.dll
20:07:41.404: obs-outputs.dll
20:07:41.404: obs-filters.dll
20:07:41.404: obs-ffmpeg.dll
20:07:41.404: obs-browser.dll
20:07:41.404: image-source.dll
20:07:41.404: frontend-tools.dll
20:07:41.404: enc-amf.dll
20:07:41.404: coreaudio-encoder.dll
20:07:41.404: ==== Startup complete ===============================================
20:07:41.468: All scene data cleared
20:07:41.468: ------------------------------------------------
20:07:41.496: WASAPI: Device 'Z5500 (High Definition Audio-apparaat)' initialized
20:07:41.500: WASAPI: Device 'Microfoon van hoofdtelefoon (Jabra BIZ 2400)' initialized
20:07:41.549: adding 21 milliseconds of audio buffering, total audio buffering is now 21 milliseconds
20:07:41.673: Switched to scene 'Screencap'
20:07:41.673: ------------------------------------------------
20:07:41.673: Loaded scenes:
20:07:41.673: - scene 'Screencap':
20:07:41.673: - source: 'Display Capture 3' (monitor_capture)
20:07:41.673: - scene 'Minecraft':
20:07:41.673: - source: 'Game Capture' (game_capture)
20:07:41.673: - source: 'Tekst (GDI+)' (text_gdiplus)
20:07:41.673: - source: 'Window Capture' (window_capture)
20:07:41.673: ------------------------------------------------
20:07:42.216: adding 21 milliseconds of audio buffering, total audio buffering is now 42 milliseconds
20:07:54.466: User switched to scene 'Screencap'
20:07:58.627: ---------------------------------
20:07:58.627: [NVENC encoder: 'simple_h264_stream'] settings:
20:07:58.627: rate_control: CBR
20:07:58.627: bitrate: 10000
20:07:58.627: cqp: 0
20:07:58.627: keyint: 250
20:07:58.627: preset: default
20:07:58.627: profile: main
20:07:58.627: level: auto
20:07:58.627: width: 1920
20:07:58.627: height: 1080
20:07:58.627: 2-pass: true
20:07:58.627: b-frames: 2
20:07:58.627: GPU: 0
20:07:58.627:
20:07:59.015: [Media Foundation AAC: 'simple_aac']: encoder created
20:07:59.015: bitrate: 160
20:07:59.015: channels: 2
20:07:59.015: sample rate: 48000
20:07:59.015: bits-per-sample: 16
20:07:59.015:
20:07:59.015: [rtmp stream: 'simple_stream'] Connecting to RTMP URL rtmp://192.168.2.242/stream...
20:07:59.016: [rtmp stream: 'simple_stream'] Interface: Intel(R) Ethernet Connection (2) I218-V (ethernet, 1000 mbps)
20:07:59.146: [rtmp stream: 'simple_stream'] Connection to rtmp://192.168.2.242/stream successful
20:07:59.148: ==== Streaming Start ===============================================


It seems to me that the mouse "sticks", what I mean by this is:

Minecraft picks up what movements you want to do by resetting the mouse to the middle of the screen, and when it does so it will move the mouse according to the distance it was moved from the middle before being moved to the middle again (I can show that like this:
zzA6zzb.gif

), which is also why I think it's a lot easier to play at high framerates(less input lag and more accuracy) and it seems like it causes my mouse to be reset to where it was (minecraft sets it to the middle, but OBS sets it back to where it was )
 

Ayyylias

New Member
Hello,

resolution:
I found out this was not a problem with OBS, my mouse is broken, the sensor likes to add in jumps which are causing my issues.
After 3 years of service it decided to stop working properly, sorry about making this thread before testing that.

Another issue I have found, (will also make a thread about this in the future)
I am using 2 scenes, one is for my monitor capture, the other one is game capture. When I change from screen capture to game capture the game capture will be black at first.
 
Top