PreLoadScreenManager will now cap possible tick time to 5 seconds. Prevents breakpoints or backgrounding from having unreasonably huge tick swings.

#rb none
#tests Android Client

#ROBOMERGE-OWNER: ryan.vance
#ROBOMERGE-AUTHOR: thomas.ross
#ROBOMERGE-SOURCE: CL 5932731 via CL 5933192 via CL 5933592 via CL 5933623
#ROBOMERGE-BOT: DEVVR (Main -> Dev-VR)

[CL 5945421 by thomas ross in Dev-VR branch]
This commit is contained in:
thomas ross
2019-04-17 13:44:01 -04:00
parent 23678ad681
commit 9fc7f0ea5b

View File

@@ -291,6 +291,11 @@ void FPreLoadScreenManager::GameLogicFrameTick()
double DeltaTime = CurrentTime - LastTickTime;
LastTickTime = CurrentTime;
//Clamp to what should be more then any max reasonable time. This is to help with cases of
//backgrounding or setting breakpoints to trigger huge ticks
const double MaxTickTime = 5.0;
DeltaTime = FMath::Min(DeltaTime, MaxTickTime);
//We have to manually tick everything as we are looping the main thread here
FTicker::GetCoreTicker().Tick(DeltaTime);
FThreadManager::Get().Tick();