Open Bug 1614694 Opened 5 years ago Updated 2 years ago

Load non-startup shaders from disk in a background thread

Categories

(Core :: Graphics: WebRender, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: jnicol, Assigned: jnicol)

References

(Blocks 1 open bug)

Details

(Whiteboard: wr-android)

Cached shaders not in the "startup shaders" list currently get loaded from disk on demand during rendering. We could instead load them in to memory in a background thread. Attempting to call glProgramBinary() on them in the background might be a step too far (dealing with multiple contexts with shared state might not end well), but just having them in memory will help avoid disk IO during rendering.

Blocks: wr-android
Whiteboard: wr-android
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.