【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

相关文章

Python调用Orator ORM进行数据库操作

《Python调用OratorORM进行数据库操作》OratorORM是一个功能丰富且灵活的PythonORM库,旨在简化数据库操作,它支持多种数据库并提供了简洁且直观的API,下面我们就... 目录Orator ORM 主要特点安装使用示例总结Orator ORM 是一个功能丰富且灵活的 python O

Java调用DeepSeek API的最佳实践及详细代码示例

《Java调用DeepSeekAPI的最佳实践及详细代码示例》:本文主要介绍如何使用Java调用DeepSeekAPI,包括获取API密钥、添加HTTP客户端依赖、创建HTTP请求、处理响应、... 目录1. 获取API密钥2. 添加HTTP客户端依赖3. 创建HTTP请求4. 处理响应5. 错误处理6.

Python中顺序结构和循环结构示例代码

《Python中顺序结构和循环结构示例代码》:本文主要介绍Python中的条件语句和循环语句,条件语句用于根据条件执行不同的代码块,循环语句用于重复执行一段代码,文章还详细说明了range函数的使... 目录一、条件语句(1)条件语句的定义(2)条件语句的语法(a)单分支 if(b)双分支 if-else(

Python itertools中accumulate函数用法及使用运用详细讲解

《Pythonitertools中accumulate函数用法及使用运用详细讲解》:本文主要介绍Python的itertools库中的accumulate函数,该函数可以计算累积和或通过指定函数... 目录1.1前言:1.2定义:1.3衍生用法:1.3Leetcode的实际运用:总结 1.1前言:本文将详

Deepseek R1模型本地化部署+API接口调用详细教程(释放AI生产力)

《DeepseekR1模型本地化部署+API接口调用详细教程(释放AI生产力)》本文介绍了本地部署DeepSeekR1模型和通过API调用将其集成到VSCode中的过程,作者详细步骤展示了如何下载和... 目录前言一、deepseek R1模型与chatGPT o1系列模型对比二、本地部署步骤1.安装oll

关于Spring @Bean 相同加载顺序不同结果不同的问题记录

《关于Spring@Bean相同加载顺序不同结果不同的问题记录》本文主要探讨了在Spring5.1.3.RELEASE版本下,当有两个全注解类定义相同类型的Bean时,由于加载顺序不同,最终生成的... 目录问题说明测试输出1测试输出2@Bean注解的BeanDefiChina编程nition加入时机总结问题说明

一分钟带你上手Python调用DeepSeek的API

《一分钟带你上手Python调用DeepSeek的API》最近DeepSeek非常火,作为一枚对前言技术非常关注的程序员来说,自然都想对接DeepSeek的API来体验一把,下面小编就来为大家介绍一下... 目录前言免费体验API-Key申请首次调用API基本概念最小单元推理模型智能体自定义界面总结前言最

轻松上手MYSQL之JSON函数实现高效数据查询与操作

《轻松上手MYSQL之JSON函数实现高效数据查询与操作》:本文主要介绍轻松上手MYSQL之JSON函数实现高效数据查询与操作的相关资料,MySQL提供了多个JSON函数,用于处理和查询JSON数... 目录一、jsON_EXTRACT 提取指定数据二、JSON_UNQUOTE 取消双引号三、JSON_KE

MySQL数据库函数之JSON_EXTRACT示例代码

《MySQL数据库函数之JSON_EXTRACT示例代码》:本文主要介绍MySQL数据库函数之JSON_EXTRACT的相关资料,JSON_EXTRACT()函数用于从JSON文档中提取值,支持对... 目录前言基本语法路径表达式示例示例 1: 提取简单值示例 2: 提取嵌套值示例 3: 提取数组中的值注意

JAVA调用Deepseek的api完成基本对话简单代码示例

《JAVA调用Deepseek的api完成基本对话简单代码示例》:本文主要介绍JAVA调用Deepseek的api完成基本对话的相关资料,文中详细讲解了如何获取DeepSeekAPI密钥、添加H... 获取API密钥首先,从DeepSeek平台获取API密钥,用于身份验证。添加HTTP客户端依赖使用Jav