Convert config options once

Instead of keeping the vlaue as a string array in the MetaLayer, convert
the value to its final type once.

Improves performance in some hotpaths that were doing config based
string conversion in a relatively high frequency.
This commit is contained in:
Ryan Houdek committed 2025-03-22 17:32:10 -07:00
1 parent 2887416b2e
commit 9bf47b3f23
13 files changed
+181 -101

No files matched your search

+2 -2
View File
@@ -534,10 +534,10 @@ NTSTATUS ProcessInit() {
FEXCore::Config::ReloadMetaLayer();
FEX::Windows::Logging::Init();
FEXCore::Config::EraseSet(FEXCore::Config::CONFIG_IS64BIT_MODE, "1");
FEXCore::Config::Set(FEXCore::Config::CONFIG_IS64BIT_MODE, "1");
// Not applicable to Windows
FEXCore::Config::EraseSet(FEXCore::Config::ConfigOption::CONFIG_TSOAUTOMIGRATION, "0");
FEXCore::Config::Set(FEXCore::Config::ConfigOption::CONFIG_TSOAUTOMIGRATION, "0");
FEXCore::Profiler::Init("", "");