Skip to content

Use gfx-rs' pipeline cache object #241

@zakorgy

Description

@zakorgy

Currently creating a new Renderer instance in Gecko or resizing the window takes too much time, especially with DX12. We can speed up this by using pipeline cache from gfx-rs.
Pipeline cache support in gfx-rs on different platforms:

  • DX12
  • Vulkan
  • Metal

Adding the code for cache creation/usage on the WR side would be an easy task. What we have to figure out is how to store the cache between multiple runs. Unfortunately there is no functionality in gfx-rs, to write\load a pipeline cache into/from a file yet. As a workaround we could try to store/update the cache in the memory on the Gecko side after a Renderer instance is destroyed and use it for the next ones.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions