Question / Help [Solved] Minecraft Recording is Quite Laggy?

Laeres

New Member
Hey, I was wondering if anyone here could please help me figure out why OBS causes my minecraft footage to lag. When I play the game and have OBS open (while recording), it's fine! There's no lag, however, when I play the video back it looks like this. My OBS output settings and PC specs are here. Video Log here. I have optifine installed with many other mods, if that helps. My goal is to record and have it come out nice and crisp (HD) without the lag, then be able to turn the footage into a gif or video if I chose. Sorry if those expectations are too high for the setup I currently have, honestly don't know a thing about PC specs and bought this laptop a while ago hoping it would be good enough for casual gaming (which it is) and maybe even recording.
 

Narcogen

Active Member
15:09:01.376: Windows Version: 10.0 Build 17134 (revision: 523; 64-bit)

Windows is out of date and Game Mode is on by default and cannot be switched off. This mode is designed to allow a single app (a game) near-exclusive access to the GPU. This prevents OBS from working properly, which shows up in the log like this:

15:22:59.981: Output 'adv_file_output': Number of lagged frames due to rendering lag/stalls: 86 (2.5%)
15:25:37.502: Output 'adv_file_output': Number of lagged frames due to rendering lag/stalls: 2395 (36.4%)
15:27:18.930: Output 'adv_file_output': Number of lagged frames due to rendering lag/stalls: 3004 (52.9%)


You should run the October 2018 update and turn off Game Mode in PC settings. Instructions are at the link in the signature below.

You also have encoding lag, which is this:

15:22:59.992: Video stopped, number of skipped frames due to encoding lag: 2185/3161 (69.1%)
15:27:24.283: Video stopped, number of skipped frames due to encoding lag: 3076/3183 (96.6%)


You're using the x264 encoder for recording on an i3. You're also recording at a very low bitrate (2500) and at 1080p60, which is challenging. In any case, for local recording you'd be better off with CRF rate control and a quality setting between 15 and 23 rather than a constant bitrate-- CBR is mostly intended for streaming, not recording.

You are completely overloading a machine of very modest capabilities. I would suggest running the Auto-Configuration Wizard from the Tools menu to develop some more reasonable settings, but in general:

Use the QSV (QuickSync) encoder if your machine supports it.
Use rate control based on quality rather than bitrate when recording (lower numbers mean higher quality and larger files)
Record at 1280x720 at 30fps instead of 1920x1080 at 60fps.
Don't record in MP4. Use MKV or FLV, and after recording, remux into mp4 with the Remux option under the File menu. MP4 files that are interrupted by OBS crash, system crash, or insufficient disk space errors will be unrecoverable. MKV files after such interruptions can be used.

15:20:06.650: YUV mode: 709/Full

Undo that change, you'll be negatively affecting the appearance of your video when played back in most web browsers.
 

Laeres

New Member
15:09:01.376: Windows Version: 10.0 Build 17134 (revision: 523; 64-bit)

Windows is out of date and Game Mode is on by default and cannot be switched off. This mode is designed to allow a single app (a game) near-exclusive access to the GPU. This prevents OBS from working properly, which shows up in the log like this:

15:22:59.981: Output 'adv_file_output': Number of lagged frames due to rendering lag/stalls: 86 (2.5%)
15:25:37.502: Output 'adv_file_output': Number of lagged frames due to rendering lag/stalls: 2395 (36.4%)
15:27:18.930: Output 'adv_file_output': Number of lagged frames due to rendering lag/stalls: 3004 (52.9%)


You should run the October 2018 update and turn off Game Mode in PC settings. Instructions are at the link in the signature below.

Thank you so so much for your very detailed feedback!! Didn't realize there were so many issues (including.. windows being out of date. How embarrassing. Updates are enabled. There wasn't a notification for that, but just went into the settings and updated it there. Going to have to look into that) Just changed most of those settings, still waiting on a few things, but thank you so much for your feedback, it means a lot!

Edit 2.0 * About the game mode thing, apparently due to an update (https://www.reddit.com/r/Windows10/comments/77kyea/no_game_mode_toggle/) it's disabled already? My game mode screen looks the exact same as in that picture. Would you happen to know of any ways to disable it aside from that method or is it not that important to disable? Did some more reading online and on the OBS forum and apparently the October update will allow the toggle to appear! Whoops, which explains why you recommended the update.
 
Last edited:

Laeres

New Member
Just did another recording with the settings you recommended and wow it has made such a huge difference! On playback it doesn't lag at all.. Really happy with the results! Thank you again! Hope you have a great week
 
Top