- Unity 2017 Game Optimization(Second Edition)
- Chris Dickinson
- 246字
- 2021-07-02 23:21:06
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.
Recall that profiling with the Unity Profiler comes with a minor performance cost. This cost is even more severe when using the Deep Profiling 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 to begin 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.
- 解構產品經理:互聯網產品策劃入門寶典
- Photoshop智能手機APP UI設計之道
- 單片機應用技術
- Visual Basic程序設計與應用實踐教程
- Kali Linux Wireless Penetration Testing Beginner's Guide(Third Edition)
- Java Web程序設計任務教程
- PHP+MySQL+Dreamweaver動態網站開發從入門到精通(第3版)
- 圖數據庫實戰
- 21天學通C++(第5版)
- CRYENGINE Game Development Blueprints
- 計算機應用基礎(第二版)
- 高效使用Greenplum:入門、進階與數據中臺
- 少兒編程輕松學(全2冊)
- 例說FPGA:可直接用于工程項目的第一手經驗
- Learning Alfresco Web Scripts