官术网_书友最值得收藏!

  • 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.

主站蜘蛛池模板: 潼关县| 沂水县| 育儿| 改则县| 漾濞| 平潭县| 从化市| 大邑县| 峨山| 措美县| 左贡县| 宣化县| 扬州市| 蛟河市| 阜城县| 麻阳| 沙湾县| 垫江县| 通海县| 泰州市| 泾源县| 井研县| 漳浦县| 原平市| 古蔺县| 兰西县| 康马县| 五台县| 都昌县| 河北区| 襄樊市| 和林格尔县| 白银市| 临桂县| 正阳县| 洛川县| 康保县| 武平县| 岑溪市| 沾益县| 攀枝花市|