real-time video encoding is VERY computationally demanding. And you do NOT have an upper-end CPU, but should be powerful enough ..DEPENDING.. on what else is going on with your PC. If you PC is maxed out with game play, and you try to add real-time video encoding on top of that, bottlenecks (encoder lag as your are seeing) are expected.
I recommend monitoring hardware resource (CPU, GPU, RAM, Disk I/O, etc) utilization [for ex. using Task manager’s Performance tab and/or Resource Monitor] to see if your system is being maxed out with your settings
https://obsproject.com/wiki/General-Performance-and-Encoding-Issues and
https://obsproject.com/wiki/GPU-overload-issues
If your system is bottlenecking, then optimizing the Operating System, and OBS, for an under-powered (for what you are asking it to do) is in order.
- I start with turning off Windows Eye-candy, unnecessary background processes, etc.
- Then keep your OBS settings realistic for your system. Get OBS working, then upgrade settings carefully and leave some headroom (so the unexpected doesn't crash your stream/recording)
- As a test, drop game frame rate to no more than 60fps, screen refresh rate to 60Hz (from 144Hz), and make sure using NVENC. If need be, disable
Disable Psychovisual Tuning. It's currently on. It, along with Lookahead and the Max Quality preset, can cause massive amounts of rendering and encoding lag even on systems that should not otherwise experience them.
Use the Quality preset, and make sure both PVT and Lookahead are disabled.
I would also recommend uninstalling the StreamElements OBS.Live plugin. It makes several changes to core OBS Studio files and replaces them with inferior versions, along with (as Lawrence noted) puking all over the log and making it hard to diagnose. All SE OBS.Live functionality can be added to base OBS Studio via Custom Docks.
The big one is to turn OFF Psychovisual Tuning though.
------
Here's the quick-start guide:
OBS Studio - Free and open source software for live streaming and screen recording - obsproject/obs-studio
obsproject.com
I'd also recommend watching the Nerd or Die tutorial video series:
Welcome to our OBS Studio tutorial series! In this series we're going to cover everything that you'll need to know to make your stream look great.Next Video...
www.youtube.com
Per pinned post in this forum
OBS Studio creates a log file each time you run it which contains very useful diagnostic information. Without a log file, it's much harder for any support volunteers to figure out problems and your post may be ignored. To upload a log file, go to the Help menu > Log Files > Upload Last Log...
obsproject.com
For a quick automated analysis of your log, you can see what the Log-Analyzer says to your log file:
OBS (Open Broadcaster Software) is free and open source software for video recording and live streaming. Stream to Twitch, YouTube and many other providers or record your own videos with high quality H264 / AAC encoding.
obsproject.com