The gain, revised

The first estimate assumed that a hit skips about 60% of a draw. The map shows that the stage sets, the buffers, the binds and the record (about 61% of a draw) run on each draw anyway, and that the KEPT part (about 25%) is already kept by memos. A fast path saves the checks of those memos, not their work.

So the estimate is about half of that 25%, on the draws that hit. With a hit rate between 28% (the global stamps) and 60% (a range check that works), that is 3% to 8% of the renderer thread, about 0.3 to 0.9 ms a present. That is two to four times the dropped stage set split, and it is still within the run-to-run noise of a single run.


Made from docs/dev/draw-fast-path.md at 69237645142c. GPL-3.0-or-later.