Skip to content

Commit

Permalink
Remove IsUsingCustomRendering() check
Browse files Browse the repository at this point in the history
  • Loading branch information
OddDrifter committed Oct 3, 2022
1 parent 334aec1 commit f83dd7d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/DRS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,13 @@ void DRS::GetGameSettings()

void DRS::Update()
{
if (reset) {
if (reset) {
ResetScale();
if (auto ui = RE::UI::GetSingleton(); ui && ui->IsUsingCustomRendering())
return;
return;
}

if (!(RE::UI::GetSingleton() && RE::UI::GetSingleton()->GameIsPaused())) // Ignore paused game which skews frametimes
else if (const auto ui = RE::UI::GetSingleton(); !(ui && ui->GameIsPaused())) { // Ignore paused game which skews frametimes
ControlResolution();
}
}

void DRS::ControlResolution()
Expand Down

0 comments on commit f83dd7d

Please sign in to comment.