Closed Bug 1419939 Opened 2 years ago Closed Last year

Add an environment variable to force pre-caching shaders.

Categories

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

enhancement

Tracking

()

RESOLVED FIXED
mozilla63
Tracking Status
firefox63 --- fixed

People

(Reporter: gw, Assigned: emilio)

References

(Blocks 1 open bug)

Details

(Whiteboard: [wr-reserve])

Attachments

(1 file)

When initializing WR, setting precache_shaders in the RendererOptions forces all shaders to be pre-compiled on startup.

This is useful until we have proper shader caching when benchmarking. For instance, the MotionMark test runner gets confused when there is an initial stall while the shaders are compiled on first use.
Whiteboard: [wr-mvp] [triage]
Priority: -- → P3
Whiteboard: [wr-mvp] [triage] → [wr-mvp] [triage][wr-reserve-candidate]
Whiteboard: [wr-mvp] [triage][wr-reserve-candidate] → [wr-reserve]
Assignee: nobody → emilio
I made the variable name up, since I didn't see another similar thing.
Let me know if I should change it.
Comment on attachment 9003840 [details]
Add an env var to precache shaders.

Dzmitry Malyshau [:kvark] has approved the revision.
Attachment #9003840 - Flags: review+
Pushed by emilio@crisal.io:
https://hg.mozilla.org/integration/autoland/rev/48905d7f2d9d
Add an env var to precache shaders. r=kvark
https://hg.mozilla.org/mozilla-central/rev/48905d7f2d9d
Status: NEW → RESOLVED
Closed: Last year
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
You need to log in before you can comment on or make changes to this bug.