mirror of
https://github.com/optiscaler/OptiScaler.git
synced 2026-09-21 04:45:48 +00:00
Change the default call spot to simulation
This commit is contained in:
@@ -699,7 +699,7 @@ namespace fakenvapi {
|
||||
// *latency = LowLatencyCtx::get()->lfx_stats.latency;
|
||||
// *frame_time = LowLatencyCtx::get()->lfx_stats.frame_time;
|
||||
|
||||
return OK();
|
||||
return ERROR();
|
||||
}
|
||||
|
||||
NvAPI_Status __cdecl Fake_InformFGState(bool fg_state) {
|
||||
|
||||
@@ -68,8 +68,6 @@ bool AntiLag2::init(IUnknown* pDevice) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// TODO: check OptiFG's reaction to deiniting AL2
|
||||
// Might need to not deinit it here, only on shutdown
|
||||
void AntiLag2::deinit() {
|
||||
if (dx12_ctx.m_pAntiLagAPI && !AMD::AntiLag2DX12::DeInitialize(&dx12_ctx))
|
||||
spdlog::info("AntiLag 2 DX12 deinitialized");
|
||||
@@ -103,7 +101,8 @@ void AntiLag2::set_sleep_mode(SleepMode* sleep_mode) {
|
||||
}
|
||||
|
||||
void AntiLag2::sleep() {
|
||||
al2_sleep();
|
||||
if (current_call_spot == CallSpot::SleepCall)
|
||||
al2_sleep();
|
||||
}
|
||||
|
||||
void AntiLag2::set_marker(IUnknown* pDevice, MarkerParams* marker_params) {
|
||||
|
||||
@@ -73,8 +73,6 @@ void LatencyFlex::lfx_end_frame(uint64_t reflex_frame_id) {
|
||||
}
|
||||
|
||||
bool LatencyFlex::init(IUnknown *pDevice) {
|
||||
current_call_spot = CallSpot::SimulationStart;
|
||||
|
||||
if (!ctx) {
|
||||
ctx = new lfx::LatencyFleX();
|
||||
spdlog::info("LatencyFleX initialized");
|
||||
|
||||
@@ -61,14 +61,14 @@ struct MarkerParams {
|
||||
|
||||
class LowLatencyTech {
|
||||
protected:
|
||||
CallSpot current_call_spot = CallSpot::SleepCall;
|
||||
CallSpot current_call_spot = CallSpot::SimulationStart;
|
||||
ForceReflex low_latency_override = ForceReflex::InGame;
|
||||
bool low_latency_enabled = false;
|
||||
bool effective_fg_state = false;
|
||||
|
||||
public:
|
||||
LowLatencyTech():
|
||||
current_call_spot(CallSpot::SleepCall),
|
||||
current_call_spot(CallSpot::SimulationStart),
|
||||
low_latency_override(ForceReflex::InGame),
|
||||
low_latency_enabled(false),
|
||||
effective_fg_state(false) {}
|
||||
|
||||
Reference in New Issue
Block a user