OBS Recording Lags, Minecraft doesn't

verseley

New Member
Okay, so I know there are like 90 billion threads on this but none of their solutions seem to work for me. So when I record minecraft with obs Minecraft doesn't lag at all. I can get about 70 fps in game consistently. But on my obs recording, it looks like i have 1 fps. There are so many solutions for this, but none of them seem to work for me.

Here are my OBS settings:
Screenshot 2021-03-10 180659.png


And here is my log file.

Thank you soooo much if you can help me with this. I really want to have a large youtube channel one day, but i just use a laptop and an office mouse to play mc... i dont have the correct funds right now so if you could please just tell me what to fix i'd appreciate you soooo much.
thank you thank you thank you
 

FerretBomb

Active Member
17:47:51.558: - scene 'Scene':
17:47:51.558: - source: 'Lunar 1.8.9' (game_capture)
17:47:51.558: - source: 'Badlion 1.8.9' (game_capture)
17:47:51.558: - source: 'Minecraft 1.8.9' (game_capture)
17:47:51.558: - source: 'Minecraft 1.14.4' (game_capture)
17:47:51.558: - source: 'Minecraft 1.16.1' (game_capture)
17:47:51.558: - source: 'Minecraft 1.16.2' (game_capture)
17:47:51.558: - source: 'Screen Capture' (monitor_capture)
17:47:51.558: - source: 'Game Capture' (game_capture)
Holy crap. First off, having a Display Capture in the same scene as a Game Capture can cause major performance issues. Display Capture should be avoided at all costs, but if required, placed into a scene on its own with NO Game or Window captures.
Second, multiple Game Captures in the same scene can conflict with each other. You can get away with two most of the time, but you have seven there. Delete all but one, and re-target it when you change versions. You can set a hotkey to capture the current active game window, so you don't have to open the properties every time.

17:48:18.136: Output 'simple_file_output': Number of lagged frames due to rendering lag/stalls: 768 (71.8%)
Your GPU is overloaded. Probably by the game. Run OBS as Administrator, to enable a GPU priority workaround. This lets OBS get access to the GPU so it can handle its tiny slice of housekeeping tasks needed, before your game can eat up the rest. If you still get rendering stalls, you may need to use a frame limiter on your game, enable vsync, and/or turn down the in-game quality settings to free up some GPU capacity.
 

verseley

New Member
Thank you! I'll try these out. Yes, I knew about the multiple game captures, but i fixed that after i made this post. But i had no idea display captures could lag out game captures. Also, is there a way I can make it so OBS will ALWAYS run as an administrator, or do i have to right click and then run it as administrator from there.

Also I have no idea how to decode the log files, which is why i posted here lol

I use display captures cuz i have a coding channel where i upload programming videos and also im on a laptop so display caapture is the only one that works
 

verseley

New Member
Okay, so i just tried that out and now my recording works without any problems!! Thank you so much!! But there is one more thing... the recording is pretty grainy. Is there any way I can make the video footage a bit higher quality? Thanks!!
 

FerretBomb

Active Member
Okay, so i just tried that out and now my recording works without any problems!! Thank you so much!! But there is one more thing... the recording is pretty grainy. Is there any way I can make the video footage a bit higher quality? Thanks!!
When recording, use CQP (or CRF), not CBR. Preferably around cqp 16-22, lower being better quality but bigger file sizes (fast!). 22 is 'good', 16 is 'visually lossless'. Below that is only used if you plan to edit the footage, to help minimize artifacting on the post-edit re-encode, and should never go below 12 unless you have a very specific reason, and know the problems it will cause and how to fix them.

CBR is the worst possible method, and is only used for livestreaming because the infrastructure requires it for video chunking and replication to the CDN servers.

To always run OBS as Admin, right-click the shortcut, go to the Compatibility tab, click the 'change settings for all users' button at the bottom, and tick the box 'run this program as Administrator'. Then OK out. You can do the same with the executable itself, but the shortcut is easier and will let you still run the executable itself as non-admin if you need to for some reason.
 

verseley

New Member
um this is kind of awkward. i just figured out there is an analyze feature in obs by itself
i didnt need to waste your time
im really sorry but im super new to obs and recording in general
thank you for your help!!!!
my videos look amazing now! :D

turns out i kind of fixed the problem by myself
after looking at the analyzer thingy its super obvious what is wrong and how i can fix it

this is it now: https://obsproject.com/tools/analyzer?log_url=https://obsproject.com/logs/sZHK8V2AwWTYzW-k
 
Top