Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
S
swiftshader
  • 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
  • swiftshader
  • Repository

Switch branch/tag
  • swiftshader
  • src
  • Vulkan
  • VkQueue.cpp
Find file
BlameHistoryPermalink
  • Alexis Hetu's avatar
    Faster image sampler fetch from key · 3575550a
    Alexis Hetu authored Jul 22, 2019
    This cl makes a tradeoff of a one time conversion of the
    LRUCache to a constant unordered map to save time on a
    costly per pixel imageSampler fetch operation.
    
    When the renderer is idle, the device copies the LRUCache
    to an unordered map, which has faster fetch times. This
    cache is always constant throughout any rendering
    operation, so it can be fetched without a mutex. This copy
    operation happens only if the LRUCache was modified since
    the last copy occurred, so, if all sampling variations
    happened on the first frame, all subsequent frames can
    render much faster.
    
    On MacOS, the Glass demo goes from 2.6 FPS to 20 FPS.
    
    Bug b/129523279 b/137649247
    
    Change-Id: I195ca8b2ead59eb5cc9e75e8b0dc5119c794d717
    Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/34348
    Presubmit-Ready: Alexis Hétu <sugoi@google.com>
    Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
    Tested-by: 's avatarAlexis Hétu <sugoi@google.com>
    Reviewed-by: 's avatarBen Clayton <bclayton@google.com>
    3575550a
VkQueue.cpp 5.38 KB
EditWeb IDE
×

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