- Unity Game Optimization
- Dr. Davide Aversa Chris Dickinson
- 248字
- 2021-06-24 12:13:01
Focusing on the issue
This category may seem redundant, given that we've already covered reducing noise. All we should have left is the issue at hand, right? Not exactly. Focus is the skill of not letting ourselves become distracted by inconsequential tasks and wild-goose chases.
You will recall that profiling with the Unity Profiler comes with a minor performance cost. This cost is even more severe when using the Deep Profile option. We might even introduce more minor performance costs into our application with additional logging. It's easy to forget when and where we introduced profiling code if the hunt continues for several hours.
We are effectively changing the result by measuring it. Any changes we implement during data sampling can sometimes lead us to chase after non-existent bugs in the application when we could have saved ourselves a lot of time by attempting to replicate the scenario without additional profiling instrumentation. If the bottleneck is reproducible and noticeable without profiling, then it's a candidate for beginning an investigation. However, if new bottlenecks keep appearing in the middle of an existing investigation, then keep in mind that they could be bottlenecks we introduced with our test code and not an existing problem that's been newly exposed.
Finally, when we have finished profiling, completed our fixes, and are now ready to move on to the next investigation, we should make sure to profile the application one last time to verify that the changes have had the intended effect.
- Visual Basic程序設計教程
- 算法精粹:經典計算機科學問題的Java實現
- Getting Started with CreateJS
- GeoServer Beginner's Guide(Second Edition)
- Python Web數據分析可視化:基于Django框架的開發實戰
- Hands-On Full Stack Development with Go
- C++面向對象程序設計習題解答與上機指導(第三版)
- 深度學習:Java語言實現
- QGIS Python Programming Cookbook(Second Edition)
- Image Processing with ImageJ
- Python趣味編程與精彩實例
- Flink技術內幕:架構設計與實現原理
- Java程序設計基礎(第6版)
- 深度學習入門:基于Python的理論與實現
- Android 游戲開發大全(第二版)