diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-08-19 17:42:42 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-08-19 17:42:42 +0200 |
commit | 78e4620d9c87493509ff5bda2de11b7c36320287 (patch) | |
tree | 15890f5783e6b6f55cc5fca73fc057f88a6e221f /src | |
parent | 677526e2e2830b9fb31b7c21d949d9d2c169d738 (diff) |
Update comments
Diffstat (limited to 'src')
-rw-r--r-- | src/overclock.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/overclock.c b/src/overclock.c index 2cba623..df2ae66 100644 --- a/src/overclock.c +++ b/src/overclock.c @@ -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; } |