You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user