mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-06 07:37:21 +02:00
Extend the nvidia command size to 128
It was exactly 64 for small arguments, but that fails for larger overlocks
This commit is contained in:
parent
d1b7c49bc2
commit
00ed82f8e4
@ -72,9 +72,9 @@ int set_gpu_state_nv(struct GameModeGPUInfo *info)
|
||||
// These commands don't technically even need root
|
||||
|
||||
/* Set the GPUGraphicsClockOffset parameter */
|
||||
char core_arg[64];
|
||||
char core_arg[128];
|
||||
snprintf(core_arg,
|
||||
64,
|
||||
128,
|
||||
"[gpu:%ld]/GPUGraphicsClockOffset[%ld]=%ld",
|
||||
info->device,
|
||||
info->nv_perf_level,
|
||||
@ -86,9 +86,9 @@ int set_gpu_state_nv(struct GameModeGPUInfo *info)
|
||||
}
|
||||
|
||||
/* Set the GPUMemoryTransferRateOffset parameter */
|
||||
char mem_arg[64];
|
||||
char mem_arg[128];
|
||||
snprintf(mem_arg,
|
||||
64,
|
||||
128,
|
||||
"[gpu:%ld]/GPUMemoryTransferRateOffset[%ld]=%ld",
|
||||
info->device,
|
||||
info->nv_perf_level,
|
||||
|
Loading…
x
Reference in New Issue
Block a user