【UE4源代码观察】观察FEngineLoop中各函数的调用顺序

2024-09-06 23:58

本文主要是介绍【UE4源代码观察】观察FEngineLoop中各函数的调用顺序,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

当启动编辑器时,Launch模块是启动模块,在Windows平台中 LaunchWindows.cpp 的 WinMain函数是入口,而 FEngineLoop 管理了程序的初始化与主循环。他的成员函数如下:

public:/*** Pre-Initialize the main loop, and generates the commandline from standard ArgC/ArgV from main().** @param ArgC The number of strings in ArgV.* @param ArgV The command line parameters (ArgV[0] is expected to be the executable name).* @param AdditionalCommandLine Optional string to append to the command line (after ArgV is put together).* @return Returns the error level, 0 if successful and > 0 if there were errors.*/ int32 PreInit(int32 ArgC, TCHAR* ArgV[], const TCHAR* AdditionalCommandline = nullptr);/*** Pre-Initialize the main loop - parse command line, sets up GIsEditor, etc.** @param CmdLine The command line.* @return The error level; 0 if successful, > 0 if there were errors.*/ int32 PreInit(const TCHAR* CmdLine);/** First part of PreInit. */int32 PreInitPreStartupScreen(const TCHAR* CmdLine);/** Second part of PreInit. */int32 PreInitPostStartupScreen(const TCHAR* CmdLine);/** Load all modules needed before Init. */ void LoadPreInitModules();/** Load core modules. */bool LoadCoreModules();#if WITH_ENGINE/** Load all core modules needed at startup time. */bool LoadStartupCoreModules();/** Load all modules needed at startup time. */bool LoadStartupModules();/*** Initialize the main loop (the rest of the initialization).** @return The error level; 0 if successful, > 0 if there were errors.*/ virtual int32 Init() override;/** Initialize the timing options from the command line. */ void InitTime();/** Performs shut down. */void Exit();/** Whether the engine should operate in an idle mode that uses no CPU or GPU time. */bool ShouldUseIdleMode() const;/** Advances the main loop. */virtual void Tick() override;/** Removes references to any objects pending cleanup by deleting them. */virtual void ClearPendingCleanupObjects() override;#endif // WITH_ENGINE/** RHI post-init initialization */static void PostInitRHI();/** Pre-init HMD device (if necessary). */static void PreInitHMDDevice();public:/** Initializes the application. */static bool AppInit();/*** Prepares the application for shutdown.** This function is called from within guarded exit code, only during non-error exits.*/static void AppPreExit();/*** Shuts down the application.** This function called outside guarded exit code, during all exits (including error exits).*/static void AppExit();private:/** Utility function that processes Slate operations. */void ProcessLocalPlayerSlateOperations() const;

我想搞清这些函数的调用次序,于是插入断点观察堆栈,画出了下面的顺序图:
在这里插入图片描述

这篇关于【UE4源代码观察】观察FEngineLoop中各函数的调用顺序的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/1143487

相关文章

shell编程之函数与数组的使用详解

《shell编程之函数与数组的使用详解》:本文主要介绍shell编程之函数与数组的使用,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录shell函数函数的用法俩个数求和系统资源监控并报警函数函数变量的作用范围函数的参数递归函数shell数组获取数组的长度读取某下的

MySQL高级查询之JOIN、子查询、窗口函数实际案例

《MySQL高级查询之JOIN、子查询、窗口函数实际案例》:本文主要介绍MySQL高级查询之JOIN、子查询、窗口函数实际案例的相关资料,JOIN用于多表关联查询,子查询用于数据筛选和过滤,窗口函... 目录前言1. JOIN(连接查询)1.1 内连接(INNER JOIN)1.2 左连接(LEFT JOI

MySQL中FIND_IN_SET函数与INSTR函数用法解析

《MySQL中FIND_IN_SET函数与INSTR函数用法解析》:本文主要介绍MySQL中FIND_IN_SET函数与INSTR函数用法解析,本文通过实例代码给大家介绍的非常详细,感兴趣的朋友一... 目录一、功能定义与语法1、FIND_IN_SET函数2、INSTR函数二、本质区别对比三、实际场景案例分

C++ Sort函数使用场景分析

《C++Sort函数使用场景分析》sort函数是algorithm库下的一个函数,sort函数是不稳定的,即大小相同的元素在排序后相对顺序可能发生改变,如果某些场景需要保持相同元素间的相对顺序,可使... 目录C++ Sort函数详解一、sort函数调用的两种方式二、sort函数使用场景三、sort函数排序

C语言函数递归实际应用举例详解

《C语言函数递归实际应用举例详解》程序调用自身的编程技巧称为递归,递归做为一种算法在程序设计语言中广泛应用,:本文主要介绍C语言函数递归实际应用举例的相关资料,文中通过代码介绍的非常详细,需要的朋... 目录前言一、递归的概念与思想二、递归的限制条件 三、递归的实际应用举例(一)求 n 的阶乘(二)顺序打印

Java调用C++动态库超详细步骤讲解(附源码)

《Java调用C++动态库超详细步骤讲解(附源码)》C语言因其高效和接近硬件的特性,时常会被用在性能要求较高或者需要直接操作硬件的场合,:本文主要介绍Java调用C++动态库的相关资料,文中通过代... 目录一、直接调用C++库第一步:动态库生成(vs2017+qt5.12.10)第二步:Java调用C++

C/C++错误信息处理的常见方法及函数

《C/C++错误信息处理的常见方法及函数》C/C++是两种广泛使用的编程语言,特别是在系统编程、嵌入式开发以及高性能计算领域,:本文主要介绍C/C++错误信息处理的常见方法及函数,文中通过代码介绍... 目录前言1. errno 和 perror()示例:2. strerror()示例:3. perror(

Kotlin 作用域函数apply、let、run、with、also使用指南

《Kotlin作用域函数apply、let、run、with、also使用指南》在Kotlin开发中,作用域函数(ScopeFunctions)是一组能让代码更简洁、更函数式的高阶函数,本文将... 目录一、引言:为什么需要作用域函数?二、作用域函China编程数详解1. apply:对象配置的 “流式构建器”最

Spring Boot 配置文件之类型、加载顺序与最佳实践记录

《SpringBoot配置文件之类型、加载顺序与最佳实践记录》SpringBoot的配置文件是灵活且强大的工具,通过合理的配置管理,可以让应用开发和部署更加高效,无论是简单的属性配置,还是复杂... 目录Spring Boot 配置文件详解一、Spring Boot 配置文件类型1.1 applicatio

在C#中调用Python代码的两种实现方式

《在C#中调用Python代码的两种实现方式》:本文主要介绍在C#中调用Python代码的两种实现方式,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录C#调用python代码的方式1. 使用 Python.NET2. 使用外部进程调用 Python 脚本总结C#调