which model i7? there are ancient models that aren't up to the task of real-time video encoding
And are you using a USB camera, and is the USB Root Hub overloaded with other traffic (causing the lag/delay in video signal)
if that is a 4+ year old PC, you may well need to focus on optimizing your Operating System setup to reduce hardware resource demands (CPU, RAM, etc), by disabling unnecessary background tasks/processes, apps., etc. ex make sure OS eye candy turned off, etc
And then there are the OBS settings which can drive hardware resource demands
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