- Unity Game Optimization
- Dr. Davide Aversa Chris Dickinson
- 178字
- 2021-06-24 12:13:00
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 from where exactly within the problematic code block the issue is originating.
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
- Instant Testing with CasperJS
- Python程序設計教程(第2版)
- Learning Java Functional Programming
- Mastering ServiceStack
- 網頁設計與制作教程(HTML+CSS+JavaScript)(第2版)
- Visual C++串口通信技術詳解(第2版)
- Kali Linux Wireless Penetration Testing Beginner's Guide(Third Edition)
- Java Web開發詳解
- 執劍而舞:用代碼創作藝術
- Mastering C++ Multithreading
- Illustrator CS6設計與應用任務教程
- 人人都能開發RPA機器人:UiPath從入門到實戰
- Web開發的平民英雄:PHP+MySQL
- Google Adsense優化實戰
- ASP.NET本質論