mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-18 13:09:57 -04:00
The pipeline statistics say how long a missed pipeline took to become usable and which stage libraries were slow, and a draw counts as skipped for its pipeline only when it was skipped.
- Every pipeline a draw missed is timed from the miss to its first usable pipeline, the fast link or, without one, the build itself (vk_pipeline.c ready_note): the gpl lines of a save give the counts under 4, 8, 17, 50 and 150 ms and over, the average, the longest, and how many had no fast link. That time is how long the pipeline's draws were missing from the picture or waited. - The stage library lines add the libraries of 25 ms or more and their sum, and the pre-rasterization libraries that had outputs added for their fragment shaders: those are another module than the one the preparation built, so the driver's cache has none of them. - "a draw waited" lines name a pipeline with a feedback loop. - The "draws skipped for a pipeline" counter (overlay, perf lines, flight records) was raised by every lookup that found the pipeline building, also when the draw then waited for its link and was drawn. It is raised where the draw is skipped now (vk_exec_draw.c draw_skipped). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
@@ -3433,6 +3433,7 @@ uint32_t vk_exec_pending_draws_take(void) {
|
||||
static int draw_skipped(const VkExec *ex, int mesh, int why) {
|
||||
DRS.skipped[mesh][why]++;
|
||||
if (why == SK_SHADER_PENDING || why == SK_PIPE_PENDING) pending_draws++;
|
||||
if (why == SK_PIPE_PENDING) perf_count(PERF_CNT_PIPE_SKIP); // skipped draws only: a lookup that then waited is none
|
||||
if (!(DRS.first[mesh] >> why & 1)) {
|
||||
DRS.first[mesh] |= 1u << why;
|
||||
rt_log("vk: first %s draw skipped because: %s (program %llu)", mesh ? "mesh" : "vertex", sk_names[why],
|
||||
@@ -3617,9 +3618,10 @@ static int prepare_draw_ex(VkExec *ex, int prim, int32_t count, int restart, int
|
||||
char tg[512];
|
||||
wait_logs++;
|
||||
vk_exec_targets_describe(ex, tg, sizeof tg);
|
||||
rt_log("vk_exec: frame %llu: a draw waited %.1f ms for its pipeline (%s%s): %u vertices, pass %ux%u, %s",
|
||||
rt_log("vk_exec: frame %llu: a draw waited %.1f ms for its pipeline (%s%s%s): %u vertices, pass %ux%u, %s",
|
||||
(unsigned long long)__atomic_load_n(&gfx_counters.frames, __ATOMIC_RELAXED) + 1, waited / 1e6, why,
|
||||
pending ? ", skipped after all" : "", count, ex->pass_w, ex->pass_h, tg);
|
||||
s.feedback ? ", feedback loop" : "", pending ? ", skipped after all" : "", count, ex->pass_w, ex->pass_h,
|
||||
tg);
|
||||
}
|
||||
if (pending) return draw_skipped(ex, mesh, SK_PIPE_PENDING); // a background worker is building it: skipped until it is ready
|
||||
if (!p || !info) return draw_skipped(ex, mesh, SK_PIPE_FAILED);
|
||||
|
||||
Reference in New Issue
Block a user