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) --- build.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'build.sh') diff --git a/build.sh b/build.sh index 5989604..4265d51 100755 --- a/build.sh +++ b/build.sh @@ -11,10 +11,12 @@ gcc -c src/capture/xcomposite_cuda.c $opts $includes gcc -c src/capture/xcomposite_drm.c $opts $includes gcc -c src/egl.c $opts $includes gcc -c src/cuda.c $opts $includes +gcc -c src/xnvctrl.c $opts $includes +gcc -c src/overclock.c $opts $includes gcc -c src/vaapi.c $opts $includes gcc -c src/window_texture.c $opts $includes gcc -c src/time.c $opts $includes g++ -c src/sound.cpp $opts $includes g++ -c src/main.cpp $opts $includes -g++ -o gpu-screen-recorder -O2 capture.o nvfbc.o egl.o cuda.o vaapi.o window_texture.o time.o xcomposite_cuda.o xcomposite_drm.o sound.o main.o -s $libs +g++ -o gpu-screen-recorder -O2 capture.o nvfbc.o egl.o cuda.o xnvctrl.o overclock.o vaapi.o window_texture.o time.o xcomposite_cuda.o xcomposite_drm.o sound.o main.o -s $libs echo "Successfully built gpu-screen-recorder" -- cgit v1.2.3