From 93cb6593a642018e3373fb7099e1c0687b367176 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 17 Mar 2023 17:17:14 +0100 Subject: Add overclocking option -oc to workaround a NVIDIA driver bug (forcefully set to p2 state when using cuda) --- include/capture/nvfbc.h | 3 ++- include/capture/xcomposite_cuda.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'include/capture') diff --git a/include/capture/nvfbc.h b/include/capture/nvfbc.h index 06587d8..431777b 100644 --- a/include/capture/nvfbc.h +++ b/include/capture/nvfbc.h @@ -12,7 +12,8 @@ typedef struct { int fps; vec2i pos; vec2i size; - bool direct_capture; /* temporary disabled */ + bool direct_capture; + bool overclock; } gsr_capture_nvfbc_params; gsr_capture* gsr_capture_nvfbc_create(const gsr_capture_nvfbc_params *params); diff --git a/include/capture/xcomposite_cuda.h b/include/capture/xcomposite_cuda.h index d9b4b10..20d358e 100644 --- a/include/capture/xcomposite_cuda.h +++ b/include/capture/xcomposite_cuda.h @@ -11,6 +11,7 @@ typedef struct { Window window; bool follow_focused; /* If this is set then |window| is ignored */ vec2i region_size; /* This is currently only used with |follow_focused| */ + bool overclock; } gsr_capture_xcomposite_cuda_params; gsr_capture* gsr_capture_xcomposite_cuda_create(const gsr_capture_xcomposite_cuda_params *params); -- cgit v1.2.3