- Unity 2017 Game Optimization(Second Edition)
- Chris Dickinson
- 178字
- 2021-07-02 23:21:05
Targeted profiling of code segments
If our performance problem isn't resolved by the checklist mentioned previously, then we probably have a real issue on our hands that demands further analysis. The Profiler window is effective at showing us a broad overview of performance; it can help us find specific frames to investigate and can quickly inform us which MonoBehaviour and/or method may be causing issues. We would then need to figure out whether the problem is reproducible, under what circumstances a performance bottleneck arises, and where exactly within the problematic code block the issue is originating from.
To accomplish these, we will need to perform some profiling of targeted sections of our code, and there are a handful of useful techniques we can employ for this task. For Unity projects, they essentially fit into two categories:
- Controlling the Profiler from script code
- Custom timing and logging methods
Note that the next section focuses on how to investigate Scripting bottlenecks through C# code. Detecting the source of bottlenecks in other engine subsystems will be discussed in their related chapters.
- TypeScript Blueprints
- .NET 4.0面向?qū)ο缶幊搪劊夯A(chǔ)篇
- WSO2 Developer’s Guide
- Java:Data Science Made Easy
- Elastic Stack應(yīng)用寶典
- 程序是怎樣跑起來的(第3版)
- 零基礎(chǔ)趣學(xué)C語言
- 好好學(xué)Java:從零基礎(chǔ)到項(xiàng)目實(shí)戰(zhàn)
- 汽車人機(jī)交互界面整合設(shè)計(jì)
- Microsoft XNA 4.0 Game Development Cookbook
- CISSP in 21 Days(Second Edition)
- 精通Oracle 12c 數(shù)據(jù)庫管理
- Learning Scrapy
- Python大數(shù)據(jù)與機(jī)器學(xué)習(xí)實(shí)戰(zhàn)
- Python機(jī)器學(xué)習(xí)技術(shù):模型關(guān)系管理