mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-13 07:00:40 +02:00
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:
13 files changed
+181
-101
No files matched your search
@@ -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("", "");
|
||||
|
||||
|
||||
Reference in new issue
Block a user