mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-07 08:07:20 +02:00
Fix formatting
This commit is contained in:
parent
6b268e8349
commit
0f6c9a8a95
@ -82,7 +82,9 @@ int game_mode_initialise_gpu(GameModeConfig *config, GameModeGPUInfo **info)
|
|||||||
|
|
||||||
/* verify device ID */
|
/* verify device ID */
|
||||||
if (new_info->device == -1) {
|
if (new_info->device == -1) {
|
||||||
LOG_ERROR("ERROR: Invalid gpu_device value set in configuration, will not apply optimisations!\n");
|
LOG_ERROR(
|
||||||
|
"ERROR: Invalid gpu_device value set in configuration, will not apply "
|
||||||
|
"optimisations!\n");
|
||||||
free(new_info);
|
free(new_info);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
@ -113,9 +115,15 @@ int game_mode_initialise_gpu(GameModeConfig *config, GameModeGPUInfo **info)
|
|||||||
*/
|
*/
|
||||||
const int nv_core_hard_limit = 200;
|
const int nv_core_hard_limit = 200;
|
||||||
const int nv_mem_hard_limit = 2000;
|
const int nv_mem_hard_limit = 2000;
|
||||||
if( new_info->core > nv_core_hard_limit || new_info->mem > nv_mem_hard_limit ) {
|
if (new_info->core > nv_core_hard_limit || new_info->mem > nv_mem_hard_limit) {
|
||||||
LOG_ERROR("ERROR NVIDIA Overclock value above safety levels of +%d (core) +%d (mem), will not overclock!\n", nv_core_hard_limit, nv_mem_hard_limit );
|
LOG_ERROR(
|
||||||
LOG_ERROR("nv_core_clock_mhz_offset:%ld nv_mem_clock_mhz_offset:%ld\n", new_info->core, new_info->mem );
|
"ERROR NVIDIA Overclock value above safety levels of +%d (core) +%d (mem), will "
|
||||||
|
"not overclock!\n",
|
||||||
|
nv_core_hard_limit,
|
||||||
|
nv_mem_hard_limit);
|
||||||
|
LOG_ERROR("nv_core_clock_mhz_offset:%ld nv_mem_clock_mhz_offset:%ld\n",
|
||||||
|
new_info->core,
|
||||||
|
new_info->mem);
|
||||||
free(new_info);
|
free(new_info);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
@ -129,9 +137,12 @@ int game_mode_initialise_gpu(GameModeConfig *config, GameModeGPUInfo **info)
|
|||||||
* If a user wants to go into very unsafe levels they can recompile
|
* If a user wants to go into very unsafe levels they can recompile
|
||||||
*/
|
*/
|
||||||
const int amd_hard_limit = 25;
|
const int amd_hard_limit = 25;
|
||||||
if( new_info->core > amd_hard_limit || new_info->mem > amd_hard_limit ) {
|
if (new_info->core > amd_hard_limit || new_info->mem > amd_hard_limit) {
|
||||||
LOG_ERROR("ERROR AMD Overclock value above safety level of %d%%, will not overclock!\n", amd_hard_limit );
|
LOG_ERROR("ERROR AMD Overclock value above safety level of %d%%, will not overclock!\n",
|
||||||
LOG_ERROR("amd_core_clock_percentage:%ld amd_mem_clock_percentage:%ld\n", new_info->core, new_info->mem );
|
amd_hard_limit);
|
||||||
|
LOG_ERROR("amd_core_clock_percentage:%ld amd_mem_clock_percentage:%ld\n",
|
||||||
|
new_info->core,
|
||||||
|
new_info->mem);
|
||||||
free(new_info);
|
free(new_info);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user