- Unity Game Optimization
- Dr. Davide Aversa Chris Dickinson
- 255字
- 2021-06-24 12:12:56
Deep Profile
Ordinary profiling will only record the time and memory allocations made by common Unity callback methods, such as Awake(), Start(), Update(), and FixedUpdate(). Enabling the Deep Profile option recompiles our scripts with a much deeper level of instrumentation, allowing it to measure each and every invoked method. This causes a significantly greater instrumentation cost during runtime than normal, and uses substantially more memory since data is being collected for the entire callstack at runtime. As a consequence, deep profiling may not even be possible in large projects, as Unity may run out of memory before testing even begins, or the application may run so slowly as to make the test pointless.
Since this option blindly measures the entire callstack, it would be unwise to keep it enabled during most of our profiling tests. This option is best reserved for when default profiling does not provide sufficient detail to figure out the root cause, or if we're testing the performance of a small test scene, which we're using to isolate certain activities.
If deep profiling is required for larger projects and scenes, but the Deep Profile option is too much of a hindrance during runtime, then there are alternative approaches that can be used to perform more detailed profiling; see the upcoming section entitled Targeted profiling of code segments.
- C# 7 and .NET Core Cookbook
- 流量的秘密:Google Analytics網(wǎng)站分析與優(yōu)化技巧(第2版)
- LaTeX Cookbook
- Mastering RabbitMQ
- 構(gòu)建移動網(wǎng)站與APP:HTML 5移動開發(fā)入門與實(shí)戰(zhàn)(跨平臺移動開發(fā)叢書)
- FreeSWITCH 1.6 Cookbook
- Learning AWS Lumberyard Game Development
- 深度學(xué)習(xí):算法入門與Keras編程實(shí)踐
- Python完全自學(xué)教程
- 從Excel到Python:用Python輕松處理Excel數(shù)據(jù)(第2版)
- PySpark Cookbook
- Lighttpd源碼分析
- SQL Server實(shí)用教程(SQL Server 2008版)
- 一塊面包板玩轉(zhuǎn)Arduino編程
- Learning Material Design