aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-10-27 19:23:39 +0200
committerdec05eba <dec05eba@protonmail.com>2022-12-20 15:42:25 +0100
commit3aa4f3e9f52742bc887a95b9ed319bdc00f958e4 (patch)
treedccb83083af809d6be80c7118b797627f9163594 /src
parenta20cdd2d7f27be3956572c1d085bb157c341b5ff (diff)
Re-enable screen-direct, disable h264 forced fallback and use p6 again
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 85dae18..ae896d3 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -808,8 +808,6 @@ int main(int argc, char **argv) {
VideoCodec video_codec;
const char *codec_to_use = args["-k"].value();
- fprintf(stderr, "Info: forcing codec to h264 to investigate stuttering with some configs\n");
- codec_to_use = "h264";
if(!codec_to_use)
codec_to_use = "auto";
@@ -982,12 +980,8 @@ 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;