Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
A
angle
  • Project
    • Overview
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Chen Yisong
  • angle
  • Repository

Switch branch/tag
  • angle
  • src
  • libANGLE
  • renderer
  • vulkan
  • vk_helpers.cpp
Find file
BlameHistoryPermalink
  • Shahbaz Youssefi's avatar
    M92: Vulkan: Free DynamicBuffer buffers after dip in allocation size · bce42eda
    Shahbaz Youssefi authored Jun 17, 2021
    In a pattern like this:
    
    - allocate 100 bytes
    - allocate 200 bytes
    - allocate 50 bytes
    - allocate 100000000 bytes
    - allocate 100 bytes
    - allocate 200 bytes
    - allocate 50 bytes
    
    The DynamicBuffer class switches to making 100MB allocations even if
    that allocation was a one-off.  A small future allocation would then tie
    up 100MB in memory for future allocations.  Another 100MB is also left
    tied up in the free list.
    
    With this change, if an allocation is made that's less than a quarter of
    the DynamicBuffer's current allocation size, it's taken as a sign that
    the previous large allocation was a one-off and the size is moved back
    to the DynamicBuffer's original initial size.
    
    Bug: b/187757166
    Bug: chromium:1224952
    Change-Id: Icb69bfa3196daa1ee8e6c38ef9513730f9afacfa
    Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2991915Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
    bce42eda
vk_helpers.cpp 305 KB
EditWeb IDE
×

Replace vk_helpers.cpp

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.