Open Bug 1959860 Opened 16 days ago Updated 16 days ago

Move the shader disk cache file operations out of the InitDeviceTask

Categories

(Core :: Graphics: WebRender, task)

task

Tracking

()

People

(Reporter: mstange, Unassigned)

References

(Blocks 1 open bug)

Details

As a follow-up to bug 1959846, I want to explore moving the following operations out of the InitDeviceTask:

  • Reading the startup_shaders file
  • Enumerating the shader files in the shader cache directory
  • Reading the contents of each shader file that's listed in startup_shaders

This should reduce the time that the parent process is blocked in EnsureConnected (bug 1626816), because it'll free up the Renderer thread sooner so that it can run the NewRenderer task.


We can read the startup_shaders file and list the directory contents in a BeginShaderWarmup task, and then read the contents of a single startup shader file during each ResumeShaderWarmup task.

You need to log in before you can comment on or make changes to this bug.