dec05eba / gpu-screen-recorder-issues

GPU Screen Recorder issue tracker
9 stars 0 forks source link

[BUG] Screen tearing #29

Closed Korgen1 closed 1 month ago

Korgen1 commented 1 month ago

Describe the bug A clear and concise description of what the bug is.

When running gpu-screen-recorder (specifically tested on deep rock galactic if its relevant) there is pretty bad screen tearing, normally I would get this screen tearing when I have vsync disabled in the game settings, however when using gpu-screen-recorder I get the screen tearing even with vsync on.

To Reproduce The GPU Screen Recorder command you ran or if you used the GUI version then describe which options you used.

ENV Options: WINDOW = focused CONTAINER = mp4 QUALITY = very_high (lowering the quality doesn't seem to fix the issue) CODEC = h264 AUDIO_CODEC = opus AUDIO_DEVICE = (my audio devices) FRAMERATE = 60 REPLAYDURATION = 60 COLOR_RANGE=full OUTPUTDIR = (directory) Restart=on-failure

Screenshots If applicable, add screenshots to help explain your problem.

Can't screenshot as the issue doesn't appear well in the actual recordings, but it is very obvious on my monitor

Desktop (please complete the following information):

Additional context

My GPU is not being stressed at all during the recordings (sits around 30% usage in game), but just enabling gpu-screen-recorder is enough to make the game unplayable with how much screen-tearing appears. Should be mentioned that it also is seemingly random when the tearing happens, but the game doesn't usually stay smooth very long. Also I am experiencing micro-stutters, while I am getting a solid 60FPS the game feels much less smooth while gpu-screen-recorder is running

dec05eba commented 1 month ago

It's likely because you are using "focused" window capture method, try capturing the monitor instead. Also how many monitors do you have connected to the computer? Or is this a new issue that didn't happen before?

Korgen1 commented 1 month ago

Yeah changing it to record a specific monitor seems to have fixed the issues, I was hoping I would be able to just record whatever window I had focused but this works, why does it cause those issues in that mode though?

dec05eba commented 1 month ago

I dont remember if its a gnome issue, if gnome enables the compositor when you capture a window or if its just how x11 works when you have vsync enabled in games. I generally dont enable vsync in games and dont use a desktop environment (with a compositor) so I dont think I've had this issue so I dont remember the details. It might also be a multi monitor thing, since you didn't mention if you have multiple monitors or not.