Try to Initialize AL2 before XeLL

Less hooking required for most people
This commit is contained in:
FakeMichau
2025-06-14 15:33:16 +02:00
parent 007cedaeda
commit 83782653e7
3 changed files with 6 additions and 5 deletions
@@ -11,17 +11,17 @@
bool LowLatency::update_low_latency_tech(IUnknown* pDevice) {
if (!currently_active_tech) {
if (!Config::get().get_force_latencyflex()) {
currently_active_tech = new XeLL();
currently_active_tech = new AntiLag2();
if (currently_active_tech->init(pDevice)) {
spdlog::info("LowLatency algo: XeLL");
spdlog::info("LowLatency algo: AntiLag 2");
return true;
}
delete currently_active_tech;
currently_active_tech = new AntiLag2();
currently_active_tech = new XeLL();
if (currently_active_tech->init(pDevice)) {
spdlog::info("LowLatency algo: AntiLag 2");
spdlog::info("LowLatency algo: XeLL");
return true;
}
@@ -62,7 +62,7 @@ bool AntiLag2::init(IUnknown* pDevice) {
}
}
} else {
spdlog::warn("Initialization of AntiLag 2 as attempted while the context is not null");
spdlog::warn("Initialization of AntiLag 2 was attempted while the context is not null");
}
return false;
@@ -79,6 +79,7 @@ bool LatencyFlex::init(IUnknown *pDevice) {
return true;
}
spdlog::error("LatencyFleX already initialized, this should not happen");
return false;
};