mirror of
https://github.com/optiscaler/OptiScaler.git
synced 2026-09-22 21:35:51 +00:00
Try to Initialize AL2 before XeLL
Less hooking required for most people
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user