最佳化 - FrankNine/franknine.github.io GitHub Wiki

  • Analyzing your application’s physical memory footprint using Memory Profiler
    • Memory State
      • Committed:OS 派發了 Virtual Memory,但不一定有使用到 Physical Memory,沒有 Assignment 就 Lazily
      • Resident: Access Virtual Memeory -> Page Fault -> 作業系統配給 Physical Memory
      • Swap: 降低 Resident,移到 Page File 或是 Compressed Memory Storage
      • Physical memory footprint = Application resident memory + Application compressed memory pages
    • Memory Type
      • Managed memory: C#
      • Graphics memory (estimated): 從圖的長寬與壓縮格式推估
      • Untracked: OS reported 但 Unity 沒有資訊,像是 Native Plugin
      • Native memory -> Reserved memory: allocated by Unity Memory Manager but not used by any Unity object during capture
  • Memory allocator customization
  • going fast is about doing less