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
  • ResourceVk.cpp
Find file
BlameHistoryPermalink
  • Mohan Maiya's avatar
    Vulkan: Reserve memory for ResourceUseList::mResourceUses · 9a64f307
    Mohan Maiya authored Aug 25, 2020
    ResourceUseList::add is called repeatedly when we need to
    track a resource's usage in a context. Instead of a
    potential memory operation on each add we reserve memory
    upfront for about 4k SharedResourceUse objects. If the
    vector grows larger, it will be automatically handled by
    std::vector's allocator.
    
    Bug: angleproject:4950
    Change-Id: Ic85ed44a6662819621ee9a47f43dd2542b73114d
    Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2375801Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
    Reviewed-by: 's avatarTim Van Patten <timvp@google.com>
    Commit-Queue: Mohan Maiya <m.maiya@samsung.com>
    9a64f307
ResourceVk.cpp 2.84 KB
EditWeb IDE
×

Replace ResourceVk.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.