Game lagging when OBS open

GG00Gamer

New Member
Having OBS open in the background causes my game to stutter. I play Minecraft. The stuttering happens when I move my mouse around obviously and is only stopped when I minimize obs, which is a pain to do every time I want to open another window. The stuttering happens regardless of whether I'm recording or not. My monitor is 144 HZ and I record in 60 hz. Any fps cap in Minecraft as well as V-sync makes it lag, and I don't particularly want V-sync on. Just another thing to note is that I tried to use a fps fraction in obs which was 144/1 but there was still stuttering in my game when I moved my mouse around. (The stuttering is visible in the recording too). I tried making obs fullscreen and making it a small window but the stuttering was still occuring. Please help.

Turning game bar or game mode doesn't work + I use game bar for my youtube and tiktok videos as well.

NOTE: When the stuttering is happening my cpu usage is only at 21 percent and my gpu at 3% (not recording)

My recordings go to my D drive, my HDD drive, so I changed it to C, SSD and that didn't help.

I tried adjusting the priority of obs in task manager and it didn't change anything, and I did the same in OBS's advanced settings, nothing helped.

I have only a game capture set to record specific window (Minecraft) and choosing fullscreen application doesn't fix the problem.

PLEASE HELP, I have looked at about 30 other forum posts and they didn't help me so it would be greatly appreciated if you would be able to assist me so I can use OBS and record without this annoying stuttering.

Note: making my Minecraft fps Vsync helps slightly but not really + I'd like to keep my extra fps. Game bar records perfectly so OBS should too.

PC specs: NVIDIA GTX 1080
CPU: Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz 3.41 GHz
RAM: 16GB
HHD: 931 GB
SSD: 117GB

LOG FILE:

EXAMPLE:

Thankyou!

Please Help!
 

qhobbes

Active Member
1. Set the refresh rate on your monitor to 120 Hz. Your log shows it's set to 60 Hz.
2. The new Windows 10 Hardware-accelerated GPU scheduling ("HAGS") added with version 2004 is currently known to cause performance and capture issues with OBS, games and overlay tools. It's a new and experimental feature and we recommend disabling it via these instructions.
3. To ensure that OBS Studio has the hardware resources it needs for realtime streaming and recording, we recommend disabling the "Game DVR Background Recording" feature via these instructions.
4. Enable Game Mode via the Windows 10 "Settings" app, under Gaming > Game Mode.
5. Do this for Minecraft https://obsproject.com/wiki/Minecraft-Not-Working-With-Game-Capture
6. Run OBS as Admin. Right click on the OBS shortcut, properties, advanced, check box, ok, apply, ok.
7. Set your OBS FPS to 60.
8. There are neither scenes nor sources added to OBS. You won't be able to record anything but a black screen without adding sources to your scenes.
9. Cap Minecraft at 120 FPS.
10. Your log contains no recording or streaming session. Results of this log analysis are limited. Please post a link to a clean log file.
To make a clean log file, please follow these steps:

1) Restart OBS as Admin.
2) Start your stream/recording for at least 30 seconds. Make sure you replicate any issues as best you can, which means having any games/apps open and captured, etc.
3) Stop your stream/recording.
4) Select Help > Log Files > Upload Current Log File. Send that link here.
 

GG00Gamer

New Member
1. Set the refresh rate on your monitor to 120 Hz. Your log shows it's set to 60 Hz.
2. The new Windows 10 Hardware-accelerated GPU scheduling ("HAGS") added with version 2004 is currently known to cause performance and capture issues with OBS, games and overlay tools. It's a new and experimental feature and we recommend disabling it via these instructions.
3. To ensure that OBS Studio has the hardware resources it needs for realtime streaming and recording, we recommend disabling the "Game DVR Background Recording" feature via these instructions.
4. Enable Game Mode via the Windows 10 "Settings" app, under Gaming > Game Mode.
5. Do this for Minecraft https://obsproject.com/wiki/Minecraft-Not-Working-With-Game-Capture
6. Run OBS as Admin. Right click on the OBS shortcut, properties, advanced, check box, ok, apply, ok.
7. Set your OBS FPS to 60.
8. There are neither scenes nor sources added to OBS. You won't be able to record anything but a black screen without adding sources to your scenes.
9. Cap Minecraft at 120 FPS.
10. Your log contains no recording or streaming session. Results of this log analysis are limited. Please post a link to a clean log file.
To make a clean log file, please follow these steps:

1) Restart OBS as Admin.
2) Start your stream/recording for at least 30 seconds. Make sure you replicate any issues as best you can, which means having any games/apps open and captured, etc.
3) Stop your stream/recording.
4) Select Help > Log Files > Upload Current Log File. Send that link here.
Thankyou very much I shall try turning off hags and doing step 1. The log was when I removed the source to see if that worked. If it doesn't work I'll post a clean log file. Turning off game mode and game dvr doesnt work for me + i use game dvr
 

qhobbes

Active Member
If you're going to use Game DVR Background Recording, that's fine, but then don't use OBS. One or the other, but not both.
 

SillyMcDangle

New Member
I know this post is old, but I am having this same issue when playing Apex and tried all of these things to no avail. I can't figure it out for the life of me. The worst part is, everything was working fine when I only had 3-4 scenes put together then I spent hours basically building my stream and now my game is unplayable if I even have OBS open at all.

Here are the things I added after it was working fine:
-2 scenes matching my main stream scene (main monitor and face cam with overlays) with a color correction filter and an additional audio file as a source.
-Several scenes that are video sources only from MP4 files
-Added Advanced Scene Switcher plugin and used:
-2 macros to automatically return to previous scene after a certain time period when one of the filtered scenes is switched to
-A bunch of media rules that switch back to previous scene once the videos play through once on the new scenes created for them
-scene triggers to mute and unmute desktop audio at the start and end of the filtered scenes.
-I enabled replay buffer

Once I got all of that set up, I tried to run a game with OBS open just so I could see what some of these things looked like in a game and noticed it was completely botched despite my FPS readout at the top looking normal.

I tried the following to fix it:
-I dropped my video on OBS from 1080p down to 720p
-I dropped OBS from 60fps down to 30fps
-I switched my scenes to Game Capture instead of Display Capture
-I tried changing from hardware(GPU) to software(CPU) for the output (even though it screws up without the stream running)
-I checked the boxes on every single source possible to disable or close file when not in use so they aren't all running in the background
-I tried turning the replay buffer back off
-I tried turning off the 2 macros set up in Advanced Scene Switcher
-I ran OBS in Admin
-I tried bottoming out graphics settings in Apex (I usually run these pretty much maxed out)
-Restarted Apex and OBS multiple times during all of these changes

None of that made any difference at all. I don't know what to do other than delete all of those scenes or at least delete Advanced Scene Switcher. I do use the Media tab in that which I know they don't support anymore because they say everything in there can be done in Macros, but I wasn't smart enough to figure it out. Maybe I need to do that? I can post a link to a log in here if someone thinks they can help.
 

SillyMcDangle

New Member
@SillyMcDangle
Here is a log of the issue:


I'm going to make a new post for this too since this one is pretty much dead.
 
Top