|
|
|
@ -23,11 +23,13 @@ void ConfigureGraphicsAdvanced::SetConfiguration() {
|
|
|
|
|
const bool runtime_lock = !system.IsPoweredOn();
|
|
|
|
|
ui->use_vsync->setEnabled(runtime_lock);
|
|
|
|
|
ui->renderer_force_max_clock->setEnabled(runtime_lock);
|
|
|
|
|
ui->async_astc->setEnabled(runtime_lock);
|
|
|
|
|
ui->use_asynchronous_shaders->setEnabled(runtime_lock);
|
|
|
|
|
ui->anisotropic_filtering_combobox->setEnabled(runtime_lock);
|
|
|
|
|
|
|
|
|
|
ui->renderer_force_max_clock->setChecked(Settings::values.renderer_force_max_clock.GetValue());
|
|
|
|
|
ui->use_vsync->setChecked(Settings::values.use_vsync.GetValue());
|
|
|
|
|
ui->async_astc->setChecked(Settings::values.async_astc.GetValue());
|
|
|
|
|
ui->use_asynchronous_shaders->setChecked(Settings::values.use_asynchronous_shaders.GetValue());
|
|
|
|
|
ui->use_fast_gpu_time->setChecked(Settings::values.use_fast_gpu_time.GetValue());
|
|
|
|
|
ui->use_pessimistic_flushes->setChecked(Settings::values.use_pessimistic_flushes.GetValue());
|
|
|
|
@ -60,6 +62,8 @@ void ConfigureGraphicsAdvanced::ApplyConfiguration() {
|
|
|
|
|
ConfigurationShared::ApplyPerGameSetting(&Settings::values.max_anisotropy,
|
|
|
|
|
ui->anisotropic_filtering_combobox);
|
|
|
|
|
ConfigurationShared::ApplyPerGameSetting(&Settings::values.use_vsync, ui->use_vsync, use_vsync);
|
|
|
|
|
ConfigurationShared::ApplyPerGameSetting(&Settings::values.async_astc, ui->async_astc,
|
|
|
|
|
async_astc);
|
|
|
|
|
ConfigurationShared::ApplyPerGameSetting(&Settings::values.use_asynchronous_shaders,
|
|
|
|
|
ui->use_asynchronous_shaders,
|
|
|
|
|
use_asynchronous_shaders);
|
|
|
|
@ -91,6 +95,7 @@ void ConfigureGraphicsAdvanced::SetupPerGameUI() {
|
|
|
|
|
ui->renderer_force_max_clock->setEnabled(
|
|
|
|
|
Settings::values.renderer_force_max_clock.UsingGlobal());
|
|
|
|
|
ui->use_vsync->setEnabled(Settings::values.use_vsync.UsingGlobal());
|
|
|
|
|
ui->async_astc->setEnabled(Settings::values.async_astc.UsingGlobal());
|
|
|
|
|
ui->use_asynchronous_shaders->setEnabled(
|
|
|
|
|
Settings::values.use_asynchronous_shaders.UsingGlobal());
|
|
|
|
|
ui->use_fast_gpu_time->setEnabled(Settings::values.use_fast_gpu_time.UsingGlobal());
|
|
|
|
@ -108,6 +113,8 @@ void ConfigureGraphicsAdvanced::SetupPerGameUI() {
|
|
|
|
|
Settings::values.renderer_force_max_clock,
|
|
|
|
|
renderer_force_max_clock);
|
|
|
|
|
ConfigurationShared::SetColoredTristate(ui->use_vsync, Settings::values.use_vsync, use_vsync);
|
|
|
|
|
ConfigurationShared::SetColoredTristate(ui->async_astc, Settings::values.async_astc,
|
|
|
|
|
async_astc);
|
|
|
|
|
ConfigurationShared::SetColoredTristate(ui->use_asynchronous_shaders,
|
|
|
|
|
Settings::values.use_asynchronous_shaders,
|
|
|
|
|
use_asynchronous_shaders);
|
|
|
|
|