forked from servo/webrender
-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Labels
Description
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.
Reactions are currently unavailable