Add an optimization to discard registers at the end of functions when possible.

Works in some games but crashes many so hiding it for now. Do not add UI.
This commit is contained in:
Henrik Rydgard committed 2013-11-08 12:43:48 +01:00
1 parent 9a51d25279
commit 5a95e267fb
7 files changed
+49 -2

No files matched your search

+3
View File
@@ -315,6 +315,9 @@ void Config::Load(const char *iniFileName, const char *controllerIniFilename) {
speedhacks->Get("PrescaleUV", &bPrescaleUV, false);
speedhacks->Get("DisableAlphaTest", &bDisableAlphaTest, false);
IniFile::Section *jitConfig = iniFile.GetOrCreateSection("JIT");
jitConfig->Get("DiscardRegsOnJRRA", &bDiscardRegsOnJRRA, false);
INFO_LOG(LOADER, "Loading controller config: %s", controllerIniFilename_.c_str());
bSaveSettings = true;