Better audio/video sync, disable broken screen-direct again (nvidia driver bug)

This commit is contained in:
dec05eba
2022-10-28 10:32:57 +02:00
parent 3aa4f3e9f5
commit bcd8117c76
2 changed files with 7 additions and 1 deletions

View File

@@ -980,8 +980,12 @@ int main(int argc, char **argv) {
const char *capture_target = window_str;
bool direct_capture = strcmp(window_str, "screen-direct") == 0;
if(direct_capture)
if(direct_capture) {
capture_target = "screen";
// TODO: Temporary disable direct capture because push model causes stuttering when it's direct capturing. This might be a nvfbc bug. This does not happen when using a compositor.
direct_capture = false;
fprintf(stderr, "Warning: screen-direct has temporary been disabled as it causes stuttering. This is likely a NvFBC bug. Falling back to \"screen\".\n");
}
gsr_capture_nvfbc_params nvfbc_params;
nvfbc_params.dpy = dpy;