Open Bug 1903550 Opened 2 years ago Updated 2 years ago

Upload all vertex data before the first draw call

Categories

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

enhancement

Tracking

()

People

(Reporter: nical, Unassigned)

References

(Blocks 1 open bug)

Details

On the renderer thread, submitting draw calls is often the slowest operation, even with a reasonable amount of draw calls per frame (under 200). WebRender currently does something which is know to be slow with most GPU drivers: vertex data upload and associated draw calls are interleaved. Instead, the best practice is to upload all of the vertex data early (ideally in few large vertex buffers) and not do any upload between draw calls).

This has the potential of significantly reducing the amount of CPU work done each frame.

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