zoukankan      html  css  js  c++  java
  • GC

    garbage collection

    是做内存管理的,栈内存出了scope自己释放,堆内存要用gc。

    The garbage collector identifies and deallocates unused heap memory. The garbage collector is run periodically to clean up the heap

    之前还以为,c#真不用释放什么的,还不如c++自己释放,现在一堆问题。还要从头捋。

    https://unity3d.com/cn/learn/tutorials/temas/performance-optimization/diagnosing-performance-problems-using-profiler-window?playlist=44069

    一次释放大量,时间长

    释放的时机,会有额外开销导致帧率下降

    heap碎片

    • We can reduce the time that the garbage collector takes to run.

    • We can reduce the frequency with which the garbage collector runs.

    • We can deliberately trigger the garbage collector so that it runs at times that are not performance-critical, for example during a loading screen.

    gc优化建议

    https://unity3d.com/cn/learn/tutorials/topics/performance-optimization/optimizing-garbage-collection-unity-games

  • 相关阅读:
    zabbix实现mysql数据库的监控(四)
    Redis高级进阶(一)
    Redis高级进阶(二)
    Redis的管理
    9.动态SQL
    8.Mapper动态代理
    7.属性名与查询字段名不相同
    6.单表的CRUD操作
    5.API详解
    4.主配置文件详解
  • 原文地址:https://www.cnblogs.com/minggoddess/p/8119463.html
Copyright © 2011-2022 走看看