aboutsummaryrefslogtreecommitdiff
path: root/include/NvFBCLibrary.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-10-11 18:57:09 +0200
committerdec05eba <dec05eba@protonmail.com>2022-10-11 19:47:28 +0200
commit9d185f309151a198e2f51e613e9a9dfaff5f6d6d (patch)
tree91750e4ada83da0dd2bc5fbb8477af1afdf04ea5 /include/NvFBCLibrary.hpp
parent1ca4dcfbdb38a41316b6013cb4090ecf03bf4994 (diff)
Use p4 preset on older gpus (kepler family) because of performance
with p7
Diffstat (limited to 'include/NvFBCLibrary.hpp')
-rw-r--r--include/NvFBCLibrary.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/NvFBCLibrary.hpp b/include/NvFBCLibrary.hpp
index 0849882..19b9bcc 100644
--- a/include/NvFBCLibrary.hpp
+++ b/include/NvFBCLibrary.hpp
@@ -192,7 +192,7 @@ public:
NVFBC_TOCUDA_GRAB_FRAME_PARAMS grab_params;
memset(&grab_params, 0, sizeof(grab_params));
grab_params.dwVersion = NVFBC_TOCUDA_GRAB_FRAME_PARAMS_VER;
- grab_params.dwFlags = NVFBC_TOCUDA_GRAB_FLAGS_NOWAIT;
+ grab_params.dwFlags = NVFBC_TOCUDA_GRAB_FLAGS_NOWAIT | NVFBC_TOCUDA_GRAB_FLAGS_FORCE_REFRESH;
grab_params.pFrameGrabInfo = &frame_info;
grab_params.pCUDADeviceBuffer = cu_device_ptr;