mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-26 17:31:45 +02:00
Remove the nv_perf_level config option and figure it out programmatically
This also fixes the instances in testing where we don't have the nv overclock in use, but we do have the mode set Solves issues explaining the what the perf_level actually meant, and future proofs for any PR that wants to set individual perf levels
This commit is contained in:
@ -456,9 +456,13 @@ int run_gpu_optimisation_tests(struct GameModeConfig *config)
|
||||
char original_amd_performance_level[CONFIG_VALUE_MAX];
|
||||
strncpy(original_amd_performance_level, gpuinfo->amd_performance_level, CONFIG_VALUE_MAX);
|
||||
|
||||
/* account for when powermizer is not set */
|
||||
/* account for when settings are not set */
|
||||
if (expected_nv_powermizer_mode == -1)
|
||||
expected_nv_powermizer_mode = original_nv_powermizer_mode;
|
||||
if (expected_core == -1)
|
||||
expected_core = original_nv_core;
|
||||
if (expected_mem == -1)
|
||||
expected_mem = original_nv_mem;
|
||||
|
||||
/* Start gamemode and check the new values */
|
||||
gamemode_request_start();
|
||||
|
Reference in New Issue
Block a user