I’ve been trying to setup OBS studio for Replay Buffer and wanted to use Screen Capture (XSHM) source. But for some reason this source causes my mouse to lag but fps doesn’t drop when playing games. I noticed that it only happens when GPU is at 99% and if i set my max fps to something low and doesn’t use that much GPU these lags stop, but i cant lower my fps because for example cs2 will be unplayable for me.
Xcomposite window capture source works just fine without any lag but i really want to use screen capture
Is there any possible fix for this?
I already asked the same question on OBS forums but got no answers.
Also not sure in which category i should ask, hope this is the right one.
More like CPU related issue, because mouse going laggy is CPU thingy. But you are sure game runs on Nvidia, right?
So, your BIOS is old. Time to upgrade firmware
IDK OBS studio and Screen Capture. Those are 2 programs or one? Can you run obs from command line: obs and see if there ae obvious errors? Same for XSHM.
XSHM is something that OBS uses for screen capture method i believe.
Tried running obs from terminal, only errors that i see are error: VAAPI: Failed to initialize display in vaapi_device_av1_supported and info: FFmpeg VAAPI AV1 encoding not supported.
When i add Screen Capture (XSHM) source i get no errors and when running a game with obs open i also see no errors but lags are present.
Give me a moment, I’m just reinstalling OBS. From memory, check your output settings. Perhaps try setting that to no more than 1920x1080 for the moment, with an FPS of 30.
No I don’t think it is an encoder issue, which is why I moved onto the output settings. The statistics show CPU is largely untouched, but the big issue is your rendering lag.
That’s why I think it’s worth testing a standard resolution, and a framerate capped at 30fps.
When i lower fps in video settings in OBS there are less lags.
If i set fps to 1 theres like 1 small lag per second maybe? I dont really know how to explain this
I’m out of ideas as far as sticking with XSHM screen capture is concerned. The Xcomposite window capture works ok as you’ve mentioned… and that was about the only other thing I could suggest.
The limited info I’ve noted online, seems to suggest it could be a Nvidia settings issue, but the thread is 4 years old, so I don’t know how relevant it is now. Just something to explore perhaps.