FTSTicker(原名FTicker,已废弃)

1)主要类说明

  1. FElement:优先队列的元素

主要成员变量:FireTime,DelayTime,Delegate

  1. FTicker:容器,单利模式

主要成员变量:CurrentTime,Elements,TickedElements,CurrentElement,bInTick

主要功能:AddTicker,RemoveTicker,Tick

AddTicker:主要参数:函数,tick时间

Tick:调用的地方

FEmbeddedCommunication::ForceTick:时间-Now - LastTime,以秒为单位

FStats::TickCommandletStats:时间-1 / 60.0f

FEngineLoop::Tick():时间-FApp::GetDeltaTime()

FAppEntry::PlatformInit():IOS,时间-0.005f

FDiffManifests::Run():时间-DeltaTime,以秒为单位

FChunkDeltaOptimiser::Run():时间-DeltaTime,以秒为单位

FPackageChunks::Run():时间-DeltaTime,以秒为单位

FPreLoadScreenManager::GameLogicFrameTick():时间-以秒为单位

  1. FTickerObjectBase:ticker对象的基类

主要成员变量:Ticker,TickHandle

2)使用Ticker的地方

  1. FGenericCrashContext:lamda表达式,1秒
  2. FGenericPlatformMemory:FGenericStatsUpdater::EnqueueUpdateStats,1秒
  3. GenericPlatformTime:FCPUTimeDump:GetCPUTimeDelegate,CPUTimeDumpDelegate
  4. FPlatformFileReadStats:Tick函数
  5. FHoloLensTime:FPlatformTime::UpdateCPUTime
  6. FEmbeddedCommunication:FEmbeddedCommunication::TickGameThread
  7. UnixPlatformCrashContext:UnixCrashReporterTracker::Tick
  8. FWindowsPlatformTime:FPlatformTime::UpdateCPUTime
  9. FCrashReportCoreUnattended:Tick
  10. FCrashUploadToReceiver:PingTimeout
  11. UEngine:FErrorsAndWarningsCollector::Tick
  12. FTextRenderComponentMIDCache:FTextRenderComponentMIDCache::PurgeUnreferencedMIDsTicker
  13. FMallocLeakReporter:Checkpoint,WriteReports
  14. FHardwareSurveyModule:TickHardwareSurvey
  15. FMessageTracer:Tick
  16. FMessageRpcClient:HandleTicker
  17. FMessageRpcServer:HandleTicker
  18. FBuildPatchServicesModule:FBuildPatchServicesModule::Tick
  19. FDownloadService:Tick
  20. FInstallerAnalytics:Tick
  21. FFileOperationTracker:Tick
  22. FFakeHttpManager:Tick
  23. FLwsWebSocketsManager:FLwsWebSocketsManager::GameThreadTick
  24. FPortalRpcLocatorImpl:HandleTicker
  25. FSessionManager:HandleTicker
  26. UScrollBox:ScrollToStart