mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-08-31 16:09:08 +01:00
yuzu: Make unlimited frame rate non persistent between game boots
This commit is contained in:
parent
339a37f8cb
commit
0ed80c9818
2 changed files with 3 additions and 2 deletions
|
@ -697,7 +697,6 @@ void Config::ReadRendererValues() {
|
||||||
ReadGlobalSetting(Settings::values.fsr_sharpening_slider);
|
ReadGlobalSetting(Settings::values.fsr_sharpening_slider);
|
||||||
ReadGlobalSetting(Settings::values.anti_aliasing);
|
ReadGlobalSetting(Settings::values.anti_aliasing);
|
||||||
ReadGlobalSetting(Settings::values.max_anisotropy);
|
ReadGlobalSetting(Settings::values.max_anisotropy);
|
||||||
ReadGlobalSetting(Settings::values.use_speed_limit);
|
|
||||||
ReadGlobalSetting(Settings::values.speed_limit);
|
ReadGlobalSetting(Settings::values.speed_limit);
|
||||||
ReadGlobalSetting(Settings::values.use_disk_shader_cache);
|
ReadGlobalSetting(Settings::values.use_disk_shader_cache);
|
||||||
ReadGlobalSetting(Settings::values.gpu_accuracy);
|
ReadGlobalSetting(Settings::values.gpu_accuracy);
|
||||||
|
@ -1328,7 +1327,6 @@ void Config::SaveRendererValues() {
|
||||||
static_cast<u32>(Settings::values.anti_aliasing.GetDefault()),
|
static_cast<u32>(Settings::values.anti_aliasing.GetDefault()),
|
||||||
Settings::values.anti_aliasing.UsingGlobal());
|
Settings::values.anti_aliasing.UsingGlobal());
|
||||||
WriteGlobalSetting(Settings::values.max_anisotropy);
|
WriteGlobalSetting(Settings::values.max_anisotropy);
|
||||||
WriteGlobalSetting(Settings::values.use_speed_limit);
|
|
||||||
WriteGlobalSetting(Settings::values.speed_limit);
|
WriteGlobalSetting(Settings::values.speed_limit);
|
||||||
WriteGlobalSetting(Settings::values.use_disk_shader_cache);
|
WriteGlobalSetting(Settings::values.use_disk_shader_cache);
|
||||||
WriteSetting(QString::fromStdString(Settings::values.gpu_accuracy.GetLabel()),
|
WriteSetting(QString::fromStdString(Settings::values.gpu_accuracy.GetLabel()),
|
||||||
|
|
|
@ -1790,6 +1790,9 @@ void GMainWindow::ShutdownGame() {
|
||||||
|
|
||||||
AllowOSSleep();
|
AllowOSSleep();
|
||||||
|
|
||||||
|
// Disable unlimited frame rate
|
||||||
|
Settings::values.use_speed_limit.SetValue(true);
|
||||||
|
|
||||||
system->SetShuttingDown(true);
|
system->SetShuttingDown(true);
|
||||||
system->DetachDebugger();
|
system->DetachDebugger();
|
||||||
discord_rpc->Pause();
|
discord_rpc->Pause();
|
||||||
|
|
Loading…
Reference in a new issue