obs-glcapture
obs-glcapture copied to clipboard
slow/laggy with larger capture sizes
First of all, this plugin is awesome, thanks for making it!
I'm trying to capture something that's 1600x1316, but the capture is laggy at this size (maybe 0.5-1s behind) and the FPS is dropping (maybe getting 1/3-1/2 of the frames that are rendered). Is there any potential optimization that can be had to improve the performance for these larger sizes?
I made this for recording fullscreen 4k video so I'd think I would have encountered this issue if it was the size of the frame to record... Could you tell me more about your setup/what you're trying to record? Are you using hardware encoding?
Great. I'm recording a screen from dolphin-emu, a gamecube/wii emulator. I have a Ryzen 1700x, 16gb ram, and Nvidia 1050ti, so I don't think it's a hardware issue (the emulator is not hard to run), and ~~screen~~ window capture works fine with no lag or frame drops, except for that the title of the window changes erratically (and I'm not sure how to set it to something fixed) resulting in the window getting lost by OBS. Even the preview shows the latency and frame drops, so I don't think it has to do with the recording itself, but the issues I see in the preview are replicated in any recordings I take. I also have managed to get smooth output with ssr by simply writing to a udp stream, transmuxing that to a v4l2 device using v4l2loopback, and opening that in OBS, albeit with higher delay and much higher overall CPU usage. I'm happy to do anything else I can do to help debug!
Leaving this as a note here: I compiled with -DCMAKE_BUILD_TYPE=Release and it helped dramatically. But maybe it was just doing a totally clean build? I'm going to check to make sure this is really what made the difference.
Yeah, that hardware should definitely be able to record that fine. Are you using hardware encoding (NVENC)?
except for that the title of the window changes erratically (and I'm not sure how to set it to something fixed)
Try running it with ssr-glinject --channel=dolphin dolphin-emu and then set Channel in the GL Source options to "dolphin", that might work. Although I don't think this plugin ever checked the window title.
Try running it with
ssr-glinject --channel=dolphin dolphin-emuand then set Channel in the GL Source options to "dolphin", that might work. Although I don't think this plugin ever checked the window title.
As in, this issue arises when using window capture. My original message used "screen capture" but I meant "window capture" my bad. I was comparing the obs-glcapture solution to the window capture one I was previously using.
Ohhh, yeah I completely misread that. Sorry.