mirror of
https://repo.dec05eba.com/gpu-screen-recorder
synced 2026-03-31 09:07:13 +09:00
Update comments
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
# process and if the session token is stolen by another application then it will ignore the session token as it wasn't that
|
||||
# application that created the session token.
|
||||
# ---
|
||||
# This is needed to allow gpu screen recorder to run faster than a heavy games fps, for example when trying to record at 60 fps
|
||||
# but the game drops to 45 fps in some place. That would also make gpu screen recorder drop to 45 fps unless this setcap is used.
|
||||
# This is needed (for EGL_CONTEXT_PRIORITY_HIGH_IMG) to allow gpu screen recorder to run faster than the heaviest application on AMD.
|
||||
# For example when trying to record a game at 60 fps and the game drops to 45 fps in some place that would also make gpu screen recorder
|
||||
# drop to 45 fps unless this setcap is used.
|
||||
#/usr/sbin/setcap cap_sys_nice+ep ${MESON_INSTALL_DESTDIR_PREFIX}/bin/gpu-screen-recorder
|
||||
|
||||
@@ -4,12 +4,10 @@
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
// HACK!!!: When a program uses cuda (including nvenc) then the nvidia driver drops to performance level 2 (memory transfer rate is dropped and possibly graphics clock).
|
||||
// HACK!!!: When a program uses cuda (including nvenc) then the nvidia driver drops to max performance level - 1 (memory transfer rate is dropped and possibly graphics clock).
|
||||
// Nvidia does this because in some very extreme cases of cuda there can be memory corruption when running at max memory transfer rate.
|
||||
// So to get around this we overclock memory transfer rate (maybe this should also be done for graphics clock?) to the best performance level while GPU Screen Recorder is running.
|
||||
|
||||
// TODO: Does it always drop to performance level 2?
|
||||
|
||||
static int min_int(int a, int b) {
|
||||
return a < b ? a : b;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user