From 0a55657bd28251ed94e2a4fc5909117146117fe1 Mon Sep 17 00:00:00 2001 From: EmulationFanatic <62343878+EmulationFanatic@users.noreply.github.com> Date: Fri, 1 Jan 2021 07:36:47 -0700 Subject: [PATCH] Enable Profiled Persistent Translation Cache (PPTC) by default (#1844) * Enable Profiled Persistent Translation Cache (PPTC) by default Enables PPTC by default. Enough time has passed and enough games tested that it should be the preferred setting for 99.9% of games. In case we are worried about PPTC files being put on the user's disk, shader cache already does this by default and generates about the same size files on average, so this should no longer be a concern. * Update config.json with PTC set to true * Updated _schema.json to set PPTC to true. --- Ryujinx.Common/Configuration/ConfigurationState.cs | 4 ++-- Ryujinx/Config.json | 4 ++-- Ryujinx/_schema.json | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Ryujinx.Common/Configuration/ConfigurationState.cs b/Ryujinx.Common/Configuration/ConfigurationState.cs index e822dcf6d..4457eb36f 100644 --- a/Ryujinx.Common/Configuration/ConfigurationState.cs +++ b/Ryujinx.Common/Configuration/ConfigurationState.cs @@ -477,7 +477,7 @@ namespace Ryujinx.Configuration CheckUpdatesOnStart.Value = true; Graphics.EnableVsync.Value = true; Graphics.EnableShaderCache.Value = true; - System.EnablePtc.Value = false; + System.EnablePtc.Value = true; System.EnableFsIntegrityChecks.Value = true; System.FsGlobalAccessLogMode.Value = 0; System.AudioBackend.Value = AudioBackend.OpenAl; @@ -683,7 +683,7 @@ namespace Ryujinx.Configuration { Common.Logging.Logger.Warning?.Print(LogClass.Application, $"Outdated configuration version {configurationFileFormat.Version}, migrating to version 8."); - configurationFileFormat.EnablePtc = false; + configurationFileFormat.EnablePtc = true; configurationFileUpdated = true; } diff --git a/Ryujinx/Config.json b/Ryujinx/Config.json index 9bd858931..f7a119e3a 100644 --- a/Ryujinx/Config.json +++ b/Ryujinx/Config.json @@ -23,7 +23,7 @@ "check_updates_on_start": true, "enable_vsync": true, "enable_shader_cache": true, - "enable_ptc": false, + "enable_ptc": true, "enable_fs_integrity_checks": true, "fs_global_access_log_mode": 0, "audio_backend": "OpenAl", @@ -99,4 +99,4 @@ } ], "controller_config": [] -} \ No newline at end of file +} diff --git a/Ryujinx/_schema.json b/Ryujinx/_schema.json index 180b1ae6e..d8402feea 100644 --- a/Ryujinx/_schema.json +++ b/Ryujinx/_schema.json @@ -1215,7 +1215,7 @@ "type": "boolean", "title": "Enable Profiled Persistent Translation Cache", "description": "Enables or disables profiled translation cache persistency", - "default": false, + "default": true, "examples": [ true, false @@ -1485,4 +1485,4 @@ "default": [] } } -} \ No newline at end of file +}